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

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.

ExceptionCondition
ArgumentNullException

array is null.

ArgumentException

start contains an invalid value.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft