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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Copies the configuration elements stored in this collection to an Array object, beginning at the specified index location in the Array.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public void CopyTo(
	ConfigurationElementType[] array,
	int start
)

Parameters

array
Type: ConfigurationElementType[]

The Array to copy the configuration elements to.

start
Type: System.Int32

The zero-based relative index in array where copying begins.

Exception Condition
ArgumentNullException

array is null.

ArgumentException

start contains an invalid value.

.NET Framework
Available since 3.0
Return to top
Show: