ConfigurationSectionCollection.CopyTo(ConfigurationSection[], Int32) Method

Definition

Copies this ConfigurationSectionCollection object to an array.

public:
 void CopyTo(cli::array <System::Configuration::ConfigurationSection ^> ^ array, int index);
public void CopyTo (System.Configuration.ConfigurationSection[] array, int index);
member this.CopyTo : System.Configuration.ConfigurationSection[] * int -> unit
Public Sub CopyTo (array As ConfigurationSection(), index As Integer)

Parameters

array
ConfigurationSection[]

The array to copy the ConfigurationSectionCollection object to.

index
Int32

The index location at which to begin copying.

Exceptions

array is null.

The length of array is less than the value of Count plus index.

Applies to