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用于以编程方式访问和修改users配置节节中credentials节forms的元素authorization。
此类型是包含 FormsAuthenticationConfiguration类型、类型和 FormsAuthenticationCredentials类型的组的 FormsAuthenticationUser 一部分。
Warning
将用户凭据存储在 credentials 部分中 不安全。 请改用 Azure 密钥保管库。
构造函数
| 名称 | 说明 |
|---|---|
| FormsAuthenticationUserCollection() |
初始化 FormsAuthenticationUserCollection 类的新实例。 |
属性
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| ICollection.CopyTo(Array, Int32) |
将 ConfigurationElementCollection 复制到数组。 (继承自 ConfigurationElementCollection) |
扩展方法
| 名称 | 说明 |
|---|---|
| AsParallel(IEnumerable) |
启用查询的并行化。 |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。 |
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定类型。 |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。 |