RuleSettingsCollection.Item Property (Int32)
.NET Framework (current version)
Gets the RuleSettings object at the specified numeric index.
Assembly: System.Web (in System.Web.dll)
Parameters
- index
-
Type:
System.Int32
The index of a RuleSettings object in the collection.
Property Value
Type: System.Web.Configuration.RuleSettingsThe RuleSettings object at the specified index.
| Exception | Condition |
|---|---|
| ConfigurationErrorsException | Index is out of range. |
A RuleSettings object at the specified index must exist.
The following code example shows how to use the Item 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: