Aracılığıyla paylaş


FormsAuthenticationUserCollection.Item[] Özellik

Tanım

Belirtilen FormsAuthenticationUser koleksiyon öğesini alır.

Aşırı Yüklemeler

Item[Int32]

Belirtilen dizinde değerini FormsAuthenticationUser alır.

Item[String]

FormsAuthenticationUser belirtilen ada sahip öğesini alır.

Item[Int32]

Belirtilen dizinde değerini FormsAuthenticationUser alır.

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

Parametreler

index
Int32

Koleksiyon kullanıcısının dizini.

Özellik Değeri

FormsAuthenticationUser

FormsAuthenticationUser Kullanıcı adı ve parolayı içeren bir.

Örnekler

Aşağıdaki kod örneği, belirtilen dizindeki bir kullanıcının kimlik bilgilerine nasıl erişeceklerini gösterir.

// 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)

Şunlara uygulanır

Item[String]

FormsAuthenticationUser belirtilen ada sahip öğesini alır.

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

Parametreler

name
String

Kullanıcının adı.

Özellik Değeri

FormsAuthenticationUser

FormsAuthenticationUser Kullanıcı adı ve parolayı içeren bir nesne.

Örnekler

Aşağıdaki kod örneği, belirtilen ada sahip bir kullanıcının kimlik bilgilerine nasıl erişeceklerini gösterir.

// 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")

Şunlara uygulanır