MulticastIPAddressInformationCollection.CopyTo(MulticastIPAddressInformation[], Int32) MulticastIPAddressInformationCollection.CopyTo(MulticastIPAddressInformation[], Int32) MulticastIPAddressInformationCollection.CopyTo(MulticastIPAddressInformation[], Int32) MulticastIPAddressInformationCollection.CopyTo(MulticastIPAddressInformation[], Int32) Method

定义

将此集合中的元素复制到 MulticastIPAddressInformation 类型的一维数组。Copies the elements in this collection to a one-dimensional array of type MulticastIPAddressInformation.

public:
 virtual void CopyTo(cli::array <System::Net::NetworkInformation::MulticastIPAddressInformation ^> ^ array, int offset);
public virtual void CopyTo (System.Net.NetworkInformation.MulticastIPAddressInformation[] array, int offset);
abstract member CopyTo : System.Net.NetworkInformation.MulticastIPAddressInformation[] * int -> unit
override this.CopyTo : System.Net.NetworkInformation.MulticastIPAddressInformation[] * int -> unit
Public Overridable Sub CopyTo (array As MulticastIPAddressInformation(), offset As Integer)

参数

array
MulticastIPAddressInformation[]

接收集合副本的一维数组。A one-dimensional array that receives a copy of the collection.

offset
Int32 Int32 Int32 Int32

array 中从零开始的索引,在此处开始复制。The zero-based index in array at which the copy begins.

异常

array 是多维的。array is multidimensional.

-or- MulticastIPAddressInformation 中的元素数大于从 count 到目标 array 末尾之间的可用空间。The number of elements in this MulticastIPAddressInformation is greater than the available space from count to the end of the destination array.

MulticastIPAddressInformation 中的元素无法自动转换为目标 array 的类型。The elements in this MulticastIPAddressInformation cannot be cast automatically to the type of the destination array.

注解

Array 参数必须是一维, 并具有从零开始的索引。The array parameter must be one-dimensional with zero-based indexing.

适用于