ServiceModelConfigurationElementCollection<ConfigurationElementType>.IndexOf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the zero-based index of the first occurrence of a configuration element in this collection.
public:
int IndexOf(ConfigurationElementType element);
public int IndexOf (ConfigurationElementType element);
member this.IndexOf : 'ConfigurationElementType -> int
Public Function IndexOf (element As ConfigurationElementType) As Integer
Parameters
- element
- ConfigurationElementType
The configuration element to locate in the collection.
Returns
The index of element
if found in the collection; -1 otherwise.
Exceptions
element
is null
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.