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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET