CookieCollection.CopyTo Método
Definición
Copia los elementos de este objeto CookieCollection en la matriz de destino especificada.Copies the elements of this CookieCollection to the specified destination array.
Sobrecargas
CopyTo(Array, Int32) |
Copia los elementos de CookieCollection en la matriz especificada, a partir de un índice determinado.Copies the elements of a CookieCollection to the specified array, starting at a particular index. |
CopyTo(Cookie[], Int32) |
Copia los elementos de este objeto CookieCollection en una matriz Cookie, empezando en el índice especificado de la matriz de destino.Copies the elements of this CookieCollection to a Cookie array starting at the specified index of the target array. |
CopyTo(Array, Int32)
Copia los elementos de CookieCollection en la matriz especificada, a partir de un índice determinado.Copies the elements of a CookieCollection to the specified array, starting at a particular 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)
Parámetros
- array
- Array
Matriz de destino en la que se copiará CookieCollection.The target array to which the CookieCollection will be copied.
- index
- Int32
Índice basado en cero de la matriz de destino donde se empieza a copiar.The zero-based index in the target array where 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 este objeto CookieCollection de origen es mayor que el espacio disponible entre index
y el final de array
de destino.The number of elements in this CookieCollection is greater than the available space from index
to the end of the destination array
.
Los elementos de CookieCollection no pueden convertirse automáticamente en el tipo de array
de destino.The elements in this CookieCollection cannot be cast automatically to the type of the destination array
.
Comentarios
El Array array
parámetro debe ser unidimensional con una indización de base cero.The Arrayarray
parameter must be one-dimensional with zero-based indexing.
Se aplica a
CopyTo(Cookie[], Int32)
Copia los elementos de este objeto CookieCollection en una matriz Cookie, empezando en el índice especificado de la matriz de destino.Copies the elements of this CookieCollection to a Cookie array starting at the specified index of the target array.
public:
virtual void CopyTo(cli::array <System::Net::Cookie ^> ^ array, int index);
public:
void CopyTo(cli::array <System::Net::Cookie ^> ^ array, int index);
public void CopyTo (System.Net.Cookie[] array, int index);
abstract member CopyTo : System.Net.Cookie[] * int -> unit
override this.CopyTo : System.Net.Cookie[] * int -> unit
member this.CopyTo : System.Net.Cookie[] * int -> unit
Public Sub CopyTo (array As Cookie(), index As Integer)
Parámetros
- array
- Cookie[]
La matriz Cookie de destino en la que se copiará CookieCollection.The target Cookie array to which the CookieCollection will be copied.
- index
- Int32
Índice basado en cero de la matriz de destino donde se empieza a copiar.The zero-based index in the target array where 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 este objeto CookieCollection de origen es mayor que el espacio disponible entre index
y el final de array
de destino.The number of elements in this CookieCollection is greater than the available space from index
to the end of the destination array
.
Los elementos de CookieCollection no pueden convertirse automáticamente en el tipo de array
de destino.The elements in this CookieCollection cannot be cast automatically to the type of the destination array
.
Comentarios
El array
parámetro debe ser unidimensional con una indización de base cero.The array
parameter must be one-dimensional with zero-based indexing.