ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>::CopyTo Method (array<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.

Namespace:   System.ServiceModel.Configuration
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.

Exception Condition
ArgumentNullException

element is null.

ArgumentException

start is invalid.

.NET Framework
Available since 3.0
Return to top
Show: