Επεξεργασία

Κοινή χρήση μέσω


IPAddressInformationCollection.CopyTo(IPAddressInformation[], Int32) Method

Definition

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)

Parameters

array
IPAddressInformation[]

A one-dimensional array that receives a copy of the collection.

offset
Int32

The zero-based index in array at which the copy begins.

Implements

Exceptions

array is null.

offset is less than zero.

array is multidimensional.

-or-

The number of elements in this IPAddressInformation is greater than the available space from offset to the end of the destination array.

The elements in this IPAddressInformation cannot be cast automatically to the type of the destination array.

Remarks

The array parameter must be one-dimensional with zero-based indexing.

Applies to