IPAddressCollection.CopyTo Method (IPAddress, Int32)
Copies the elements in this collection to a one-dimensional array of type IPAddress.
Assembly: System (in System.dll)
A one-dimensional array that receives a copy of the collection.
The zero-based index in array at which the copy begins.
array is null.
offset is less than zero.
The number of elements in this IPAddressCollection is greater than the available space from offset to the end of the destination array.
The elements in this IPAddressCollection cannot be cast automatically to the type of the destination array.
The array parameter must be one-dimensional with zero-based indexing.
Available since 10
Available since 2.0