GatewayIPAddressInformationCollection.CopyTo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将此集合中的元素复制到类型的 GatewayIPAddressInformation一维数组。
public:
virtual void CopyTo(cli::array <System::Net::NetworkInformation::GatewayIPAddressInformation ^> ^ array, int offset);
public virtual void CopyTo(System.Net.NetworkInformation.GatewayIPAddressInformation[] array, int offset);
abstract member CopyTo : System.Net.NetworkInformation.GatewayIPAddressInformation[] * int -> unit
override this.CopyTo : System.Net.NetworkInformation.GatewayIPAddressInformation[] * int -> unit
Public Overridable Sub CopyTo (array As GatewayIPAddressInformation(), offset As Integer)
参数
- array
- GatewayIPAddressInformation[]
接收集合副本的一维数组。
- offset
- Int32
从零开始的索引 array 。
实现
例外
array 是 null。
offset 小于零。
无法自动将其中 GatewayIPAddressInformation 元素强制转换为目标 array类型。
注解
数组参数必须是从零开始的索引的一维。