IPAddressInformationCollection.CopyTo(IPAddressInformation[], Int32) Methode

Definitie

Hiermee kopieert u de verzameling naar de opgegeven matrix.

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)

Parameters

array
IPAddressInformation[]

Een eendimensionale matrix die een kopie van de verzameling ontvangt.

offset
Int32

De op nul gebaseerde index array waarin de kopie begint.

Implementeringen

Uitzonderingen

array is null.

offset is kleiner dan nul.

array is multidimensionaal.

– of –

Het aantal elementen in dit is IPAddressInformation groter dan de beschikbare ruimte van offset tot het einde van de bestemming array.

De elementen in deze IPAddressInformation kunnen niet automatisch worden gecast naar het type van de bestemming array.

Opmerkingen

De array parameter moet eendimensionaal zijn met indexering op basis van nul.

Van toepassing op