FormsAuthenticationUserCollection.AllKeys Property

Definition

Gets all the collection's keys.

public:
 property cli::array <System::String ^> ^ AllKeys { cli::array <System::String ^> ^ get(); };
public string[] AllKeys { get; }
member this.AllKeys : string[]
Public ReadOnly Property AllKeys As String()

Property Value

String[]

The string array containing the collection keys.

Examples

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

// Get the collection keys.
object [] keys = 
    formsAuthenticationCredentials.Users.AllKeys;
' Get the collection keys.
  Dim keys As String() = _
  formsAuthenticationCredentials.Users.AllKeys

Remarks

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

Applies to