AuthorizationRuleCollection.Get Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the AuthorizationRule at the specified index.

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

public AuthorizationRule Get(
	int index
)

Parameters

index
Type: System.Int32

The AuthorizationRule index.

Return Value

Type: System.Web.Configuration.AuthorizationRule

The AuthorizationRule at the specified index.

The following code example shows how to use the Get method. Refer to the code example in the AuthorizationSection class topic to learn how to get the collection.

// Using the AuthorizationRuleCollection Get method.
AuthorizationRule authRule = 
    authorizationRuleCollection.Get(0);

.NET Framework
Available since 2.0
Return to top
Show: