Share via


FormsAuthenticationUserCollection.GetKey(Int32) Método

Definición

Obtiene la clave en el índice especificado de la colección FormsAuthenticationUserCollection.

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

Índice de la colección.

Devoluciones

La clave del índice especificado de FormsAuthenticationUserCollection.

Ejemplos

En el ejemplo de código siguiente, se muestra cómo se utiliza el 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)

Se aplica a