ServiceNameElementCollection 类
定义
ServiceNameCollection 类是服务主体名称的集合,这些名称表示 ExtendedProtectionPolicy 的配置元素。The ServiceNameCollection class is a collection of service principal names that represent a configuration element for an ExtendedProtectionPolicy.
public ref class ServiceNameElementCollection sealed : System::Configuration::ConfigurationElementCollection
public sealed class ServiceNameElementCollection : System.Configuration.ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElement))]
public sealed class ServiceNameElementCollection : System.Configuration.ConfigurationElementCollection
type ServiceNameElementCollection = class
inherit ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElement))>]
type ServiceNameElementCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class ServiceNameElementCollection
Inherits ConfigurationElementCollection
- 继承
- 属性
构造函数
| ServiceNameElementCollection() |
初始化 ServiceNameElementCollection 类的新实例。Initializes a new instance of the ServiceNameElementCollection class. |
属性
| AddElementName |
在派生的类中重写时,获取或设置 ConfigurationElement 的名称,以便在 ConfigurationElementCollection 中与添加操作关联。Gets or sets the name of the ConfigurationElement to associate with the add operation in the ConfigurationElementCollection when overridden in a derived class. (继承自 ConfigurationElementCollection) |
| ClearElementName |
在派生的类中重写时,获取或设置 ConfigurationElement 的名称,以便在 ConfigurationElementCollection 中与清除操作关联。Gets or sets the name for the ConfigurationElement to associate with the clear operation in the ConfigurationElementCollection when overridden in a derived class. (继承自 ConfigurationElementCollection) |
| CollectionType |
获取 ConfigurationElementCollection 的类型。Gets the type of the ConfigurationElementCollection. (继承自 ConfigurationElementCollection) |
| Count |
获取集合中的元素数。Gets the number of elements in the collection. (继承自 ConfigurationElementCollection) |
| CurrentConfiguration |
获取对顶级 Configuration 实例的引用,该实例表示当前 ConfigurationElement 实例所属的配置层次结构。Gets a reference to the top-level Configuration instance that represents the configuration hierarchy that the current ConfigurationElement instance belongs to. (继承自 ConfigurationElement) |
| ElementInformation |
获取包含 ConfigurationElement 对象的不可自定义的信息和功能的 ElementInformation 对象。Gets an ElementInformation object that contains the non-customizable information and functionality of the ConfigurationElement object. (继承自 ConfigurationElement) |
| ElementName |
获取在派生的类中重写时用于标识配置文件中此元素集合的名称。Gets the name used to identify this collection of elements in the configuration file when overridden in a derived class. (继承自 ConfigurationElementCollection) |
| ElementProperty |
获取表示 ConfigurationElement 对象本身的 ConfigurationElementProperty 对象。Gets the ConfigurationElementProperty object that represents the ConfigurationElement object itself. (继承自 ConfigurationElement) |
| EmitClear |
获取或设置一个值,该值指定是否已清除集合。Gets or sets a value that specifies whether the collection has been cleared. (继承自 ConfigurationElementCollection) |
| EvaluationContext |
获取 ConfigurationElement 对象的 ContextInformation 对象。Gets the ContextInformation object for the ConfigurationElement object. (继承自 ConfigurationElement) |
| HasContext |
获取一个值,该值指示 CurrentConfiguration 属性是否为 |
| IsSynchronized |
获取一个值,该值指示是否同步对集合的访问。Gets a value indicating whether access to the collection is synchronized. (继承自 ConfigurationElementCollection) |
| Item[ConfigurationProperty] |
获取或设置此配置元素的属性或特性。Gets or sets a property or attribute of this configuration element. (继承自 ConfigurationElement) |
| Item[Int32] |
用于获取或设置指定索引位置处的 Item[String] 实例的 ServiceNameElement 属性。The Item[String] property gets or sets the ServiceNameElement instance at the specified index location. |
| Item[String] |
Item[String] 属性基于表示 ServiceNameElement 实例的字符串来获取或设置 ServiceNameElement 实例。The Item[String] property gets or sets the ServiceNameElement instance based on a string that represents the ServiceNameElement instance. |
| LockAllAttributesExcept |
获取被锁定的特性的集合。Gets the collection of locked attributes. (继承自 ConfigurationElement) |
| LockAllElementsExcept |
获取被锁定的元素的集合。Gets the collection of locked elements. (继承自 ConfigurationElement) |
| LockAttributes |
获取被锁定的特性的集合。Gets the collection of locked attributes. (继承自 ConfigurationElement) |
| LockElements |
获取被锁定的元素的集合。Gets the collection of locked elements. (继承自 ConfigurationElement) |
| LockItem |
获取或设置一个值,该值指示是否已锁定该元素。Gets or sets a value indicating whether the element is locked. (继承自 ConfigurationElement) |
| Properties |
获取属性的集合。Gets the collection of properties. (继承自 ConfigurationElement) |
| RemoveElementName |
在派生的类中重写时,获取或设置 ConfigurationElement 的名称,以便在 ConfigurationElementCollection 中与移除操作关联。Gets or sets the name of the ConfigurationElement to associate with the remove operation in the ConfigurationElementCollection when overridden in a derived class. (继承自 ConfigurationElementCollection) |
| SyncRoot |
获取用于同步对 ConfigurationElementCollection 的访问的对象。Gets an object used to synchronize access to the ConfigurationElementCollection. (继承自 ConfigurationElementCollection) |
| ThrowOnDuplicate |
获取一个值,该值指示尝试向 ConfigurationElement 添加重复的 ConfigurationElementCollection 是否会导致引发异常。Gets a value indicating whether an attempt to add a duplicate ConfigurationElement to the ConfigurationElementCollection will cause an exception to be thrown. (继承自 ConfigurationElementCollection) |
方法
显式接口实现
| ICollection.CopyTo(Array, Int32) |
将 ConfigurationElementCollection 复制到数组。Copies the ConfigurationElementCollection to an array. (继承自 ConfigurationElementCollection) |
扩展方法
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |