IPAddressInformationCollection.CopyTo(IPAddressInformation[], Int32) Metoda
Definicja
Kopiuje kolekcję do określonej tablicy.Copies the collection to the specified array.
public:
virtual void CopyTo(cli::array <System::Net::NetworkInformation::IPAddressInformation ^> ^ array, int offset);
public virtual void CopyTo (System.Net.NetworkInformation.IPAddressInformation[] array, int offset);
abstract member CopyTo : System.Net.NetworkInformation.IPAddressInformation[] * int -> unit
override this.CopyTo : System.Net.NetworkInformation.IPAddressInformation[] * int -> unit
Public Overridable Sub CopyTo (array As IPAddressInformation(), offset As Integer)
Parametry
- array
- IPAddressInformation[]
Jednowymiarowa tablica, która otrzymuje kopię kolekcji.A one-dimensional array that receives a copy of the collection.
- offset
- Int32
Indeks (liczony od zera), w array
którym rozpoczyna się kopiowanie.The zero-based index in array
at which the copy begins.
Implementuje
Wyjątki
array
to null
.array
is null
.
Parametr offset
ma wartość niższą niż zero.offset
is less than zero.
Parametr array
jest wielowymiarowy.array
is multidimensional.
-lub--or-
Liczba elementów w tym IPAddressInformation miejscu jest większa niż dostępne miejsce od offset
do końca miejsca docelowego array
.The number of elements in this IPAddressInformation is greater than the available space from offset
to the end of the destination array
.
IPAddressInformationNie można automatycznie rzutować elementów w tym typie docelowym array
.The elements in this IPAddressInformation cannot be cast automatically to the type of the destination array
.
Uwagi
array
Parametr musi być jednowymiarowy z indeksowaniem opartym na zero.The array
parameter must be one-dimensional with zero-based indexing.