ControlCollection.CopyTo(ControlElement[], Int32) Method
Definition
Important
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 ICollection<T> to an Array, starting at a particular Array index.
public:
virtual void CopyTo(cli::array <Microsoft::Uii::Common::ControlElement ^> ^ array, int arrayIndex);
public void CopyTo (Microsoft.Uii.Common.ControlElement[] array, int arrayIndex);
abstract member CopyTo : Microsoft.Uii.Common.ControlElement[] * int -> unit
override this.CopyTo : Microsoft.Uii.Common.ControlElement[] * int -> unit
Public Sub CopyTo (array As ControlElement(), arrayIndex As Integer)
Parameters
- array
- ControlElement[]
Specifies the one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
- arrayIndex
- Int32
Specifies the zero-based index in array
at which copying begins.
Implements
Exceptions
array
is null.
arrayIndex
is less than 0.
array
is multidimensional. -or- arrayIndex
is equal to or greater than the length of array
. -or- The number of elements in the source ICollection<T> is greater than the available space from arrayIndex
to the end of the destination array
. -or-