FormsAuthenticationUserCollection.Get Method (Int32)

 

Gets the FormsAuthenticationUser collection element at the specified index.

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

public FormsAuthenticationUser Get(
	int index
)

Parameters

index
Type: System.Int32

The collection user's index.

Return Value

Type: System.Web.Configuration.FormsAuthenticationUser

A FormsAuthenticationUser that contains the user name and password.

The following code example shows how to access credentials of a user at the specified index.

// Get the user at the specified index.
FormsAuthenticationUser storedUser2 = 
    formsAuthenticationCredentials.Users.Get(0);

.NET Framework
Available since 2.0
Return to top
Show: