Поделиться через


FormsAuthenticationUserCollection.GetKey(Int32) Метод

Определение

Получает ключ по указанному индексу коллекции 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

Параметры

index
Int32

Индекс в коллекции.

Возвращаемое значение

Ключ по указанному индексу FormsAuthenticationUserCollection.

Примеры

В следующем примере кода показано применение метода 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)

Применяется к