다음을 통해 공유


FormsAuthenticationUserCollection.Item[] 속성

정의

지정된 FormsAuthenticationUser 컬렉션 항목을 가져옵니다.

오버로드

Item[Int32]

지정된 인덱스의 FormsAuthenticationUser를 가져옵니다.

Item[String]

지정된 이름을 가진 FormsAuthenticationUser를 가져옵니다.

Item[Int32]

지정된 인덱스의 FormsAuthenticationUser를 가져옵니다.

public:
 property System::Web::Configuration::FormsAuthenticationUser ^ default[int] { System::Web::Configuration::FormsAuthenticationUser ^ get(int index); void set(int index, System::Web::Configuration::FormsAuthenticationUser ^ value); };
public System.Web.Configuration.FormsAuthenticationUser this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.FormsAuthenticationUser with get, set
Default Public Property Item(index As Integer) As FormsAuthenticationUser

매개 변수

index
Int32

컬렉션 사용자의 인덱스입니다.

속성 값

FormsAuthenticationUser

사용자 이름과 암호가 포함된 FormsAuthenticationUser입니다.

예제

다음 코드 예제에서는 지정된 된 인덱스에 있는 사용자의 자격 증명에 액세스 하는 방법을 보여 줍니다.

// Get the user element at the specified index.
FormsAuthenticationUser storedUser3 = 
    formsAuthenticationCredentials.Users[0];
' Get the user element at the specified index.
  Dim storedUser3 As FormsAuthenticationUser = _
  formsAuthenticationCredentials.Users(0)

적용 대상

Item[String]

지정된 이름을 가진 FormsAuthenticationUser를 가져옵니다.

public:
 property System::Web::Configuration::FormsAuthenticationUser ^ default[System::String ^] { System::Web::Configuration::FormsAuthenticationUser ^ get(System::String ^ name); };
public System.Web.Configuration.FormsAuthenticationUser this[string name] { get; }
member this.Item(string) : System.Web.Configuration.FormsAuthenticationUser
Default Public ReadOnly Property Item(name As String) As FormsAuthenticationUser

매개 변수

name
String

사용자의 이름입니다.

속성 값

FormsAuthenticationUser

사용자 이름과 암호가 포함된 FormsAuthenticationUser 개체입니다.

예제

다음 코드 예제에서는 지정된 된 이름 가진 사용자의 자격 증명에 액세스 하는 방법을 보여 줍니다.

// Get the user element with the specified name.
FormsAuthenticationUser storedUser4 = 
    formsAuthenticationCredentials.Users["userName"];
' Get the user element with the specified name.
  Dim storedUser4 As FormsAuthenticationUser = _
  formsAuthenticationCredentials.Users("userName")

적용 대상