Partilhar via


FormsAuthenticationUserCollection.AllKeys Propriedade

Definição

Obtém todas as chaves da coleção.

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()

Valor da propriedade

String[]

A string matriz que contém as chaves de coleção.

Exemplos

O exemplo de código a seguir mostra como usar a AllKeys propriedade.

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

Comentários

Você pode usar esse método para acessar os FormsAuthenticationUser objetos contidos na coleção.

Aplica-se a