CAS.Lib.CodeProtect Namespace
CAS.Lib.CodeProtect.LicenseDsc Namespace
CAS.Lib.CodeProtect.LicenseDsc.Constraints Namespace
CAS.Lib.CodeProtect.Properties Namespace
OOI CodeProtect

TimeRangeCollection..::..CopyTo Method

Copies the TimeRangeCollection values to a one-dimensional Array instance at the specified index.

Namespace:  CAS.Lib.CodeProtect.LicenseDsc.Constraints
Assembly:  CAS.CodeProtect (in CAS.CodeProtect.dll)

Syntax


public void CopyTo(
	TimeRange[] array,
	int index
)
Public Sub CopyTo ( _
	array As TimeRange(), _
	index As Integer _
)
public:
void CopyTo(
	array<TimeRange^>^ array, 
	int^ index
)

Parameters

array
Type: array<TimeRange>[]()[][]
The one-dimensional Array that is the destination of the values copied from TimeRangeCollection.
index
Type: Int32
The index in array where copying begins.

Exceptions


ExceptionCondition
ArgumentException

array is multidimensional.

-or-

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

ArgumentNullExceptionarray is nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionindex is less than array's low-bound.