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,以程式設計方式存取和修改 authorization 組態區段 forms 區段中 credentials 區段的 users 元素。
此類型是包含 FormsAuthenticationConfiguration、FormsAuthenticationCredentials和 FormsAuthenticationUser 類型的群組的一部分。
警告
在 [credentials] 區段中儲存使用者認證 不安全。 請改用 Azure Key Vault。
建構函式
| FormsAuthenticationUserCollection() |
初始化 FormsAuthenticationUserCollection 類別的新實例。 |
屬性
方法
明確介面實作
| ICollection.CopyTo(Array, Int32) |
將 ConfigurationElementCollection 複製到陣列。 (繼承來源 ConfigurationElementCollection) |
擴充方法
| Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
| OfType<TResult>(IEnumerable) |
根據指定的型別篩選 IEnumerable 的專案。 |
| AsParallel(IEnumerable) |
啟用查詢的平行處理。 |
| AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |
適用於
另請參閱
- ASP.NET 驗證
- 窗體驗證認證
- 窗體驗證提供者
- 跨應用程式
窗體驗證