NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Dictionary.CopyTo (DictionaryEntry[], Int32)

Copies the Dictionary entries into a one-dimensional array of DictionaryEntry objects at the specified index.

[Visual Basic]
Overloads Overridable Public Sub CopyTo( _
   ByVal array() As DictionaryEntry, _
   ByVal arrayIndex As Integer _
)
[C#]
public virtual void CopyTo(
   DictionaryEntry[] array,
   int arrayIndex
);
[C++]
public: virtual void CopyTo(
   DictionaryEntry* array[],
   int arrayIndex
);
[JScript]
public function CopyTo(
   array : DictionaryEntry[],
   arrayIndex : int
);

Parameters

array
The one-dimensional array of DictionaryEntry objects to contain the Dictionary entries.
arrayIndex
The index in array at which to start copying.

Return Value

None.

Exceptions

Exception Type Condition
ArgumentException array is multidimensional.

-or-

The number of elements in the Dictionary is greater than the available space between arrayIndex and the end of the array.

ArgumentNullException array is a null reference (in Visual Basic Nothing).
ArgumentOutOfRangeException arrayIndex is less than array 's lowbound.

Remarks

This method can be overridden by a derived class.

See Also

Dictionary Class | Dictionary Members | System.Collections Namespace | Dictionary.CopyTo Overload List | DictionaryEntry