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 身份验证
- 窗体身份验证凭据
- Forms 身份验证提供程序
- 跨应用程序
窗体身份验证