Share via


FormsAuthenticationUserCollection.GetKey(Int32) Méthode

Définition

Obtient la clé à l'index de collection FormsAuthenticationUserCollection spécifié.

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

Paramètres

index
Int32

Index dans la collection.

Retours

Clé à l'index spécifié de la liste FormsAuthenticationUserCollection.

Exemples

L'exemple de code suivant montre comment utiliser la méthode 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)

S’applique à