Spread Windows Forms 10.0 Product Documentation
CopyTo Method (MatchedListItemCollectionInfo)


The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ICollection. The System.Array must have zero-based indexing.
The zero-based index in array at which copying begins.
Copies the elements of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index.
Syntax
'Declaration
 
Public Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
'Usage
 
Dim instance As MatchedListItemCollectionInfo
Dim array As Array
Dim index As Integer
 
instance.CopyTo(array, index)
public void CopyTo( 
   Array array,
   int index
)

Parameters

array
The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ICollection. The System.Array must have zero-based indexing.
index
The zero-based index in array at which copying begins.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe array is a null reference (Nothing in Visual Basic).
System.ArgumentOutOfRangeExceptionThe index is less than zero.
System.ArgumentExceptionThe array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source System.Collections.ICollection is greater than the available space from index to the end of the destination array.
System.InvalidCastExceptionThe type of the source System.Collections.ICollection cannot be cast automatically to the type of the destination array.
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

MatchedListItemCollectionInfo Class
MatchedListItemCollectionInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.