FormsAuthenticationUserCollection.GetKey(Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour