Managed Collection. Copy To(Array, Int32) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the elements of the StateManagedCollection collection to an array, starting at a particular array index.
public: virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)
The zero-based index in
array at which copying begins.
index is less than zero.
array is multidimensional.
index is greater than or equal to the length of
The number of elements in the source StateManagedCollection is greater than the available space from the
index to the end of the destination
The specified array must be of a compatible type.