UnicastIPAddressInformationCollection.CopyTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- array
- UnicastIPAddressInformation[]
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
.
index
is less than zero.
array
is multidimensional.
-or-
The number of elements in this UnicastIPAddressInformationCollection is greater than the available space from offset
to the end of the destination array
.
The elements in this UnicastIPAddressInformationCollection cannot be cast automatically to the type of the destination array
.
Remarks
The array parameter must be one-dimensional with zero-based indexing.