Rediger

Del via


ServiceModelConfigurationElementCollection<ConfigurationElementType>.IndexOf Method

Definition

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