FormsAuthenticationUserCollection.Item Property (Int32)

 

Gets the FormsAuthenticationUser at the specified index.

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

Public Property Item (
	index As Integer
) As FormsAuthenticationUser

Parameters

index
Type: System.Int32

The collection user's index.

Property Value

Type: System.Web.Configuration.FormsAuthenticationUser

A FormsAuthenticationUser that contains the user name and password.

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

' Get the user element at the specified index.
  Dim storedUser3 As FormsAuthenticationUser = _
  formsAuthenticationCredentials.Users(0)

.NET Framework
Available since 2.0
Return to top
Show: