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

컬렉션의 인덱스입니다.

반환

String

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)

적용 대상