RuleSettingsCollection.IndexOf Method (String)
.NET Framework (current version)
Finds the index of a RuleSettings object in the collection with the specified name.
Assembly: System.Web (in System.Web.dll)
Parameters
- name
-
Type:
System.String
The name of a RuleSettings object in the collection.
Return Value
Type: System.Int32The index of a RuleSettings object in the collection with the specified name.
Returns -1 if a RuleSettings object with the specified name is not in the collection.
The following code example shows how to use the IndexOf method. This code example is part of a larger example provided for the HealthMonitoringSection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: