FormsAuthenticationUserCollection.AllKeys Property

 
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 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: