StatusBar.StatusBarPanelCollection.ICollection.CopyTo(Array, Int32) Método
Definición
Copia la StatusBar.StatusBarPanelCollection en una matriz unidimensional compatible, empezando en el índice especificado de la matriz de destino.Copies the StatusBar.StatusBarPanelCollection to a compatible one-dimensional array, starting at the specified index of the target array.
virtual void System.Collections.ICollection.CopyTo(Array ^ dest, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array dest, int index);
Sub CopyTo (dest As Array, index As Integer) Implements ICollection.CopyTo
Parámetros
- dest
- Array
Matriz unidimensional que constituye el destino de los elementos copiados de la colección.The one-dimensional array that is the destination of the elements copied from the collection. La matriz debe tener una indización de base cero.The array must have zero-based indexing.
- index
- Int32
Índice de base cero de la matriz donde comienza la copia.The zero-based index in the array at which copying begins.
Implementaciones
Excepciones
array
es null
.array
is null
.
index
es menor que cero.index
is less than zero.
array
es multidimensional.array
is multidimensional.
O bien-or-
El número de elementos de StatusBar.StatusBarPanelCollection es mayor que el espacio disponible desde el índice hasta el final de array
.The number of elements in the StatusBar.StatusBarPanelCollection is greater than the available space from index to the end of array
.
El tipo de la colección no puede convertirse automáticamente al tipo de la array
.The type in the collection cannot be cast automatically to the type of array
.