Leadtools.Dicom.AddIn Namespace > ThreadSafeList<T> Class : CopyTo Method |
public void CopyTo( T[] array, int arrayIndex )
'Declaration Public Sub CopyTo( _ ByVal array() As T, _ ByVal arrayIndex As Integer _ )
'Usage Dim instance As ThreadSafeList(Of T) Dim array() As T Dim arrayIndex As Integer instance.CopyTo(array, arrayIndex)
public void CopyTo( T[] array, int arrayIndex )
function Leadtools.Dicom.AddIn.ThreadSafeList.CopyTo( array , arrayIndex )
public: void CopyTo( array<T^>^ 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. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2