System.Web.Configuration.RuleSettingsCollection.IndexOf Method

Finds the index of a System.Web.Configuration.RuleSettings object in the collection with the specified name.

Syntax

public int IndexOf (string name)

Parameters

name
The name of a System.Web.Configuration.RuleSettings object in the collection.

Returns

The index of a System.Web.Configuration.RuleSettings object in the collection with the specified name.

Remarks

Returns -1 if a System.Web.Configuration.RuleSettings object with the specified name is not in the collection.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0