ControlCollection.CopyTo Method
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)
Usage
'Usage
Dim instance As ControlCollection
Dim array As ControlElement()
Dim arrayIndex As Integer
instance.CopyTo(array, arrayIndex)
Syntax
'Declaration
Public Sub CopyTo ( _
array As ControlElement(), _
arrayIndex As Integer _
)
public void CopyTo (
ControlElement[] array,
int arrayIndex
)
public:
virtual void CopyTo (
array<ControlElement^>^ array,
int arrayIndex
) sealed
public final void CopyTo (
ControlElement[] array,
int arrayIndex
)
public final function CopyTo (
array : ControlElement[],
arrayIndex : int
)
Parameters
- array
Specifies the one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.
- arrayIndex
Specifies the zero-based index in array at which copying begins.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | array is null. |
ArgumentOutOfRangeException | arrayIndex is less than 0. |
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- |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
ControlCollection Class
ControlCollection Members
Microsoft.Uii.Common Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.