ServiceModelConfigurationElementCollection<ConfigurationElementType>.CopyTo(ConfigurationElementType[], Int32) 方法

定义

Array 中的指定索引位置开始,将此集合中存储的配置元素复制到 Array 对象。Copies the configuration elements stored in this collection to an Array object, beginning at the specified index location in the Array.

public:
 void CopyTo(cli::array <ConfigurationElementType> ^ array, int start);
public void CopyTo (ConfigurationElementType[] array, int start);
override this.CopyTo : 'ConfigurationElementType[] * int -> unit
Public Sub CopyTo (array As ConfigurationElementType(), start As Integer)

参数

array
ConfigurationElementType[]

复制配置元素的目标 ArrayThe Array to copy the configuration elements to.

start
Int32

array 自其开始复制的从零开始的相关索引。The zero-based relative index in array where copying begins.

例外

arraynullarray is null.

start 包含无效值。start contains an invalid value.

适用于