Share via


FormsAuthenticationUserCollection.GetKey(Int32) Método

Definição

Obtém a chave no índice da coleção FormsAuthenticationUserCollection especificado.

public:
 System::String ^ GetKey(int index);
public string GetKey (int index);
member this.GetKey : int -> string
Public Function GetKey (index As Integer) As String

Parâmetros

index
Int32

O índice na coleção.

Retornos

A chave no índice especificado da FormsAuthenticationUserCollection.

Exemplos

O exemplo de código a seguir mostra como usar o método GetKey.

// Get the key at the specified index.
string thisKey = formsAuthenticationCredentials.Users.GetKey(0).ToString();
' Get the key at the specified index.
  Dim thisKey As String = _
  formsAuthenticationCredentials.Users.GetKey(0)

Aplica-se a