HttpApplicationStateWrapper.CopyTo(Array, Int32) Método
Definição
Copia os elementos da coleção para uma matriz, começando no índice especificado na matriz.Copies the elements of the collection to an array, starting at the specified index in the array.
public:
override void CopyTo(Array ^ array, int index);
public override void CopyTo (Array array, int index);
override this.CopyTo : Array * int -> unit
Public Overrides Sub CopyTo (array As Array, index As Integer)
Parâmetros
- array
- Array
A matriz unidimensional que é o destino dos elementos copiados da coleção.The one-dimensional array that is the destination for the elements that are copied from the collection. A matriz deve ter indexação com base em zero.The array must have zero-based indexing.
- index
- Int32
O índice de base zero em array no qual começar a copiar.The zero-based index in array at which to begin copying.
Exceções
array é null.array is null.
index é menor que zero.index is less than zero.
array é multidimensional.array is multidimensional.
- ou --or-
O número de elementos no objeto de origem HttpApplicationStateWrapper é maior do que o espaço disponível de index até o final da matriz de destino.The number of elements in the source HttpApplicationStateWrapper object is greater than the available space from index to the end of the destination array.
O tipo do objeto de origem HttpApplicationStateWrapper não pode ser automaticamente convertido para o tipo da matriz de destino.The type of the source HttpApplicationStateWrapper object cannot be cast to the type of the destination array.