ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>::CopyTo Method (array<TServiceModelExtensionElement>^, Int32)
.NET Framework (current version)
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. This method cannot be inherited.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: virtual void CopyTo( array<TServiceModelExtensionElement>^ elements, int start ) sealed
Parameters
- elements
-
Type:
array<TServiceModelExtensionElement>^
A one-dimensional array that is the destination of the elements copied from collection. The array must have zero-based
- start
-
Type:
System::Int32
The zero-based index in the elements array at which copying begins.
Implements
ICollection<T>::CopyTo(array<T>^, Int32)| Exception | Condition |
|---|---|
| ArgumentNullException | element is null. |
| ArgumentException | start is invalid. |
.NET Framework
Available since 3.0
Available since 3.0
Show: