NameObjectCollectionCopyTo Method
Copies the entire
NameObjectCollection to a compatible
one-dimensional
Array, starting at the specified index of the target array.
Namespace: DevCase.Runtime.CollectionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public void CopyTo(
Array dest,
int index
)
Public Sub CopyTo (
dest As Array,
index As Integer
)
Dim instance As NameObjectCollection
Dim dest As Array
Dim index As Integer
instance.CopyTo(dest, index)
public:
void CopyTo(
Array^ dest,
int index
)
member CopyTo :
dest : Array *
index : int -> unit
No code example is currently available or this language may not be supported.
Parameters
- dest Array
-
The one-dimensional Array that is the destination of the elements copied
from NameObjectCollection. The Array must
have zero-based indexing.
- index Int32
-
The zero-based index in dest at which copying begins.
ArgumentNullException
|
dest is null.
|
ArgumentOutOfRangeException
|
index is less than zero.
|
ArgumentException
|
dest is multidimensional. -or- The number of elements in the source NameObjectCollection
is greater than the available space from index to the end of the destination
dest.
|
InvalidCastException
|
The type of the source NameObjectCollection cannot
be cast automatically to the type of the destination dest.
|