FormsAuthenticationUserCollection.Get 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定的 FormsAuthenticationUser 集合元素。
多載
| 名稱 | Description |
|---|---|
| Get(String) |
取得 FormsAuthenticationUser 指定名稱的集合元素。 |
| Get(Int32) |
取得 FormsAuthenticationUser 指定索引的集合元素。 |
Get(String)
取得 FormsAuthenticationUser 指定名稱的集合元素。
public:
System::Web::Configuration::FormsAuthenticationUser ^ Get(System::String ^ name);
public System.Web.Configuration.FormsAuthenticationUser Get(string name);
member this.Get : string -> System.Web.Configuration.FormsAuthenticationUser
Public Function Get (name As String) As FormsAuthenticationUser
參數
- name
- String
使用者的名字。
傳回
一個 FormsAuthenticationUser 包含使用者名稱和密碼的物件。
適用於
Get(Int32)
取得 FormsAuthenticationUser 指定索引的集合元素。
public:
System::Web::Configuration::FormsAuthenticationUser ^ Get(int index);
public System.Web.Configuration.FormsAuthenticationUser Get(int index);
member this.Get : int -> System.Web.Configuration.FormsAuthenticationUser
Public Function Get (index As Integer) As FormsAuthenticationUser
參數
- index
- Int32
收藏用戶索引。
傳回
FormsAuthenticationUser A 裡面包含使用者名稱和密碼。