FormsAuthenticationUserCollection.AllKeys Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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 = 

.NET Framework
Available since 2.0
Return to top