Version

CopyTo Method (DataBindingCollection)

Copies the ScheduleDataBinding instances within this collection to another array.
Syntax
'Declaration
 
Public Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
public void CopyTo( 
   Array array,
   int index
)

Parameters

array
The array into which ScheduleDataBinding instances are to be copied.
index
The starting index (zero-based) in array at which copying begins.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown when array is supplied to this method as null (Nothing in Visual Basic .NET)
System.ArgumentOutOfRangeExceptionThrown when index is less than zero.
System.ArgumentExceptionThrown when index exceeds the space alloted in array, or when copying elements starting at index would exceed the space alloted in array were it to be allowed, or when array is a multi-dimensional array.
Remarks

Developers can use this method to copy the DataBindingCollection for their own purposes. One example would be to use CopyTo in order to maintain a copy in an array that could be used in the implementation or override of multiple data-binding operations when registering ScheduleDataBindings at the beginning of the operation with AddRange.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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

See Also