FormsAuthenticationUserCollection.AllKeys Property

 

Gets all the collection's keys.

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

public string[] AllKeys { get; }

Property Value

Type: System.String[]

The string array containing the collection keys.

You can use this method to access the FormsAuthenticationUser objects contained in the collection.

The following code example shows how to use the AllKeys property.

// Get the collection keys.
object [] keys = 
    formsAuthenticationCredentials.Users.AllKeys;

.NET Framework
Available since 2.0
Return to top
Show: