Aracılığıyla paylaş


FormsAuthenticationUserCollection.GetKey(Int32) Yöntem

Tanım

Belirtilen FormsAuthenticationUserCollection koleksiyon dizinindeki anahtarı alır.

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

Parametreler

index
Int32

Koleksiyondaki dizin.

Döndürülenler

belirtilen dizinindeki FormsAuthenticationUserCollectionanahtar.

Örnekler

Aşağıdaki kod örneğinde yönteminin nasıl kullanılacağı gösterilmektedir 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)

Şunlara uygulanır