FormsAuthenticationUserCollection.Item[] 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 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입니다.
예제
다음 코드 예제에서는 지정된 된 인덱스에 있는 사용자의 자격 증명에 액세스 하는 방법을 보여 줍니다.
// 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 개체입니다.
예제
다음 코드 예제에서는 지정된 된 이름 가진 사용자의 자격 증명에 액세스 하는 방법을 보여 줍니다.
// 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")