UnicastIPAddressInformationCollection.CopyTo(UnicastIPAddressInformation[], Int32) Método
Definição
Copia os elementos dessa coleção para uma matriz unidimensional do tipo UnicastIPAddressInformation.Copies the elements in this collection to a one-dimensional array of type UnicastIPAddressInformation.
public:
virtual void CopyTo(cli::array <System::Net::NetworkInformation::UnicastIPAddressInformation ^> ^ array, int offset);
public virtual void CopyTo (System.Net.NetworkInformation.UnicastIPAddressInformation[] array, int offset);
abstract member CopyTo : System.Net.NetworkInformation.UnicastIPAddressInformation[] * int -> unit
override this.CopyTo : System.Net.NetworkInformation.UnicastIPAddressInformation[] * int -> unit
Public Overridable Sub CopyTo (array As UnicastIPAddressInformation(), offset As Integer)
Parâmetros
- array
- UnicastIPAddressInformation[]
Uma matriz unidimensional que recebe uma cópia da coleção.A one-dimensional array that receives a copy of the collection.
- offset
- Int32
O índice de base zero em array no qual a cópia começa.The zero-based index in array at which the copy begins.
Implementações
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 neste UnicastIPAddressInformationCollection é maior do que o espaço disponível de offset até o final do array de destino.The number of elements in this UnicastIPAddressInformationCollection is greater than the available space from offset to the end of the destination array.
Os elementos nesse UnicastIPAddressInformationCollection não podem ser automaticamente convertidos para o tipo de array de destino.The elements in this UnicastIPAddressInformationCollection cannot be cast automatically to the type of the destination array.
Comentários
O parâmetro de matriz deve ser unidimensional com indexação de base zero.The array parameter must be one-dimensional with zero-based indexing.