ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.CopyTo(TServiceModelExtensionElement[], Int32) 方法
定义
将整个集合复制到从目标数组的指定索引处开始的一个兼容的一维数组。Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. 无法继承此方法。This method cannot be inherited.
public:
virtual void CopyTo(cli::array <TServiceModelExtensionElement> ^ elements, int start);
public void CopyTo (TServiceModelExtensionElement[] elements, int start);
abstract member CopyTo : 'ServiceModelExtensionElement[] * int -> unit
override this.CopyTo : 'ServiceModelExtensionElement[] * int -> unit
Public Sub CopyTo (elements As TServiceModelExtensionElement(), start As Integer)
参数
- elements
- TServiceModelExtensionElement[]
作为从集合中复制的元素的目标的一维数组。A one-dimensional array that is the destination of the elements copied from collection. 该数组必须具有从零开始的索引The array must have zero-based
- start
- Int32
elements 数组中从零开始的索引,将从该索引处开始复制。The zero-based index in the elements array at which copying begins.
实现
例外
element 为 null。element is null.
start 无效。start is invalid.