FormsAuthenticationUserCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一組 FormsAuthenticationUser 物件。 此類別無法獲得繼承。
public ref class FormsAuthenticationUserCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.FormsAuthenticationUser), AddItemName="user", CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)]
public sealed class FormsAuthenticationUserCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.FormsAuthenticationUser), AddItemName="user", CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)>]
type FormsAuthenticationUserCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class FormsAuthenticationUserCollection
Inherits ConfigurationElementCollection
- 繼承
- 屬性
備註
該 使用 來FormsAuthenticationCredentials程式化存取並修改FormsAuthenticationUserCollection設定區段中userscredentials該區段的元素forms。authorization
此類型屬於包含 FormsAuthenticationConfiguration、 FormsAuthenticationCredentialsFormsAuthenticationUser 、 及 類型組成的群。
警告
在 [credentials] 區段中儲存使用者認證 不安全。 請改用 Azure Key Vault。
建構函式
| 名稱 | Description |
|---|---|
| FormsAuthenticationUserCollection() |
初始化 FormsAuthenticationUserCollection 類別的新執行個體。 |
屬性
方法
明確介面實作
| 名稱 | Description |
|---|---|
| ICollection.CopyTo(Array, Int32) |
將 ConfigurationElementCollection 複製到陣列。 (繼承來源 ConfigurationElementCollection) |
擴充方法
| 名稱 | Description |
|---|---|
| AsParallel(IEnumerable) |
啟用查詢的平行處理。 |
| AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |
| Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
| OfType<TResult>(IEnumerable) |
根據指定的型別篩選 IEnumerable 的專案。 |