ServiceModelConfigurationElementCollection<ConfigurationElementType>.IndexOf Methode

Definition

Gibt den nullbasierten Index des ersten Vorkommens eines Konfigurationselements in dieser Auflistung zurück.

public:
 int IndexOf(ConfigurationElementType element);
public int IndexOf(ConfigurationElementType element);
member this.IndexOf : 'ConfigurationElementType -> int
Public Function IndexOf (element As ConfigurationElementType) As Integer

Parameter

element
ConfigurationElementType

Das Konfigurationselement, das in der Auflistung gefunden werden soll.

Gibt zurück

Der Index, der element in der Auflistung gefunden wird; -1 andernfalls.

Ausnahmen

element ist null.

Gilt für: