ConfigurationBuilderCollection 类
定义
按名称维护 ConfigurationBuilder 对象的集合。Maintains a collection of ConfigurationBuilder objects by name.
public ref class ConfigurationBuilderCollection : System::Configuration::Provider::ProviderCollection
public class ConfigurationBuilderCollection : System.Configuration.Provider.ProviderCollection
type ConfigurationBuilderCollection = class
inherit ProviderCollection
Public Class ConfigurationBuilderCollection
Inherits ProviderCollection
- 继承
构造函数
ConfigurationBuilderCollection() |
初始化 ConfigurationBuilderCollection 类的新实例。Initializes a new instance of the ConfigurationBuilderCollection class. |
属性
Count |
获取集合中提供程序的数目。Gets the number of providers in the collection. (继承自 ProviderCollection) |
IsSynchronized |
获取一个值,该值指示对集合的访问是否为同步的(线程安全)。Gets a value indicating whether access to the collection is synchronized (thread safe). (继承自 ProviderCollection) |
Item[String] |
从配置了提供的名称的 ConfigurationBuilderCollection 中获取 ConfigurationBuilder 对象。Gets the ConfigurationBuilder object from the ConfigurationBuilderCollection that is configured with the provided name. |
SyncRoot |
获取当前对象。Gets the current object. (继承自 ProviderCollection) |
方法
Add(ProviderBase) |
向 ConfigurationBuilderCollection 对象添加一个 ConfigurationBuilder 对象。Adds a ConfigurationBuilder object to the ConfigurationBuilderCollection object. |
Clear() |
从集合中移除所有项。Removes all items from the collection. (继承自 ProviderCollection) |
CopyTo(ProviderBase[], Int32) |
从指定索引处开始,将集合中的内容复制到给定数组。Copies the contents of the collection to the given array starting at the specified index. (继承自 ProviderCollection) |
Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
GetEnumerator() |
返回一个对象,该对象实现 IEnumerator 接口以循环访问集合。Returns an object that implements the IEnumerator interface to iterate through the collection. (继承自 ProviderCollection) |
GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
Remove(String) |
从集合中移除提供程序。Removes a provider from the collection. (继承自 ProviderCollection) |
SetReadOnly() |
将集合设置为只读。Sets the collection to be read-only. (继承自 ProviderCollection) |
ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
显式接口实现
ICollection.CopyTo(Array, Int32) |
将 ProviderCollection 的元素复制到一个数组中从特定的数组索引开始的位置。Copies the elements of the ProviderCollection to an array, starting at a particular array index. (继承自 ProviderCollection) |
扩展方法
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. |