ServiceModelConfigurationElementCollection<ConfigurationElementType>::IndexOf Method (ConfigurationElementType)
.NET Framework (current version)
Returns the zero-based index of the first occurrence of a configuration element in this collection.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- element
-
Type:
ConfigurationElementType
The configuration element to locate in the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | element is null. |
.NET Framework
Available since 3.0
Available since 3.0
Show: