FormsAuthenticationUserCollection.GetKey(Int32) Método
Definição
Obtém a chave no índice da coleção FormsAuthenticationUserCollection especificado.Gets the key at the specified FormsAuthenticationUserCollection collection index.
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.The index in the collection.
Retornos
A chave no índice especificado da FormsAuthenticationUserCollection.The key at the specified index of the FormsAuthenticationUserCollection.
Exemplos
O exemplo de código a seguir mostra como usar o método GetKey.The following code example shows how to use the GetKey method.
// 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)