ConfigurationElementCollection.BaseGet Method (Int32)
.NET Framework 4.6 and 4.5
Gets the configuration element at the specified index location.
Namespace: System.Configuration
Assembly: System.Configuration (in System.Configuration.dll)
Parameters
- index
- Type: System.Int32
The index location of the ConfigurationElement to return.
Return Value
Type: System.Configuration.ConfigurationElementThe ConfigurationElement at the specified index.
| Exception | Condition |
|---|---|
| ConfigurationErrorsException | index is less than 0. - or - There is no ConfigurationElement at the specified index. |
Show: