UnicastIPAddressInformationCollection.CopyTo Metod

Definition

Kopierar elementen i den här samlingen till en endimensionell matris av typen 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)

Parametrar

array
UnicastIPAddressInformation[]

En endimensionell matris som tar emot en kopia av samlingen.

offset
Int32

Det nollbaserade index array där kopian börjar.

Implementeringar

Undantag

array är null.

offset är mindre än noll.

array är flerdimensionellt.

-eller-

Antalet element i detta UnicastIPAddressInformationCollection är större än det tillgängliga utrymmet från offset till slutet av målet array.

Elementen i detta UnicastIPAddressInformationCollection kan inte omvandlas automatiskt till måltypen array.

Kommentarer

Matrisparametern måste vara endimensionell med nollbaserad indexering.

Gäller för