IdentityConfigurationElementCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示配置文件中元素的 <identityConfiguration> 集合。 此类不能被继承。
public ref class IdentityConfigurationElementCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.IdentityModel.Configuration.IdentityConfigurationElement), AddItemName="identityConfiguration", CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)]
public sealed class IdentityConfigurationElementCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.IdentityModel.Configuration.IdentityConfigurationElement), AddItemName="identityConfiguration", CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)>]
type IdentityConfigurationElementCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class IdentityConfigurationElementCollection
Inherits ConfigurationElementCollection
- 继承
- 属性
注解
配置文件可以有多个 <identityConfiguration> 元素。 每个标识配置都由其 name 属性中指定的唯一名称标识。 每个 <identityConfiguration> 元素都由一个 IdentityConfigurationElement 对象表示。
Name每个对象的属性包含标识配置的名称。 该 IdentityConfigurationElementCollection 类包装一个集合,该集合包含从文件读取的所有 <identityConfiguration> 元素。 标识配置的名称用作在调用IdentityConfigurationElement该方法时检索相应的GetElement密钥。
构造函数
| 名称 | 说明 |
|---|---|
| IdentityConfigurationElementCollection() |
初始化 IdentityConfigurationElementCollection 类的新实例。 |
属性
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| ICollection.CopyTo(Array, Int32) |
将 ConfigurationElementCollection 复制到数组。 (继承自 ConfigurationElementCollection) |
扩展方法
| 名称 | 说明 |
|---|---|
| AsParallel(IEnumerable) |
启用查询的并行化。 |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。 |
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定类型。 |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。 |