RuleSettingsCollection.Item Property (Int32)

 

Gets the RuleSettings object at the specified numeric index.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

Public Property Item (
	index As Integer
) As RuleSettings

Parameters

index
Type: System.Int32

The index of a RuleSettings object in the collection.

Property Value

Type: System.Web.Configuration.RuleSettings

The 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.

ruleSetting = healthMonitoringSection.Rules(i)

.NET Framework
Available since 2.0
Return to top
Show: