Leadtools.Dicom.AddIn Namespace > ThreadSafeDictionary<TKey,TValue> Class : CopyTo Method |
public virtual void CopyTo( KeyValuePair<TKey,TValue>[] array, int arrayIndex )
'Declaration Public Overridable Sub CopyTo( _ ByVal array() As KeyValuePair(Of TKey,TValue), _ ByVal arrayIndex As Integer _ )
'Usage Dim instance As ThreadSafeDictionary(Of TKey,TValue) Dim array() As KeyValuePair(Of TKey,TValue) Dim arrayIndex As Integer instance.CopyTo(array, arrayIndex)
public: virtual void CopyTo( array<KeyValuePair<TKey^,TValue^>>^ array, int arrayIndex )
Exception | Description |
---|---|
System.ArgumentNullException | array is null. |
System.ArgumentOutOfRangeException | arrayIndex is less than 0. |
System.ArgumentException | array is multidimensional. -or- arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source ICollection is greater than the available space from arrayIndex to the end of the destination array. -or- Type T cannot be cast automatically to the type of the destination array. |