SettingsProviderCollection 类

定义

表示应用程序设置提供程序的集合。

public ref class SettingsProviderCollection : System::Configuration::Provider::ProviderCollection
public class SettingsProviderCollection : System.Configuration.Provider.ProviderCollection
type SettingsProviderCollection = class
    inherit ProviderCollection
Public Class SettingsProviderCollection
Inherits ProviderCollection
继承
SettingsProviderCollection
派生

注解

SettingsProviderCollection类是用于存储ProviderCollection对象的类的SettingsProvider直接扩展。

ApplicationSettingsBase 类使用此集合通过 管理与其每个应用程序设置属性 SettingsProviderAttribute关联的设置提供程序。

构造函数

名称 说明
SettingsProviderCollection()

初始化 SettingsProviderCollection 类的新实例。

属性

名称 说明
Count

获取集合中的提供程序数。

(继承自 ProviderCollection)
IsSynchronized

获取一个值,该值指示是否同步对集合的访问(线程安全)。

(继承自 ProviderCollection)
Item[String]

获取集合中与指定名称匹配的设置提供程序。

SyncRoot

获取当前对象。

(继承自 ProviderCollection)

方法

名称 说明
Add(ProviderBase)

将新的设置提供程序添加到集合。

Clear()

从集合中删除所有项。

(继承自 ProviderCollection)
CopyTo(ProviderBase[], Int32)

将集合的内容复制到从指定索引处开始的给定数组。

(继承自 ProviderCollection)
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetEnumerator()

返回一个对象,该对象实现 IEnumerator 接口以循环访问集合。

(继承自 ProviderCollection)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
Remove(String)

从集合中删除提供程序。

(继承自 ProviderCollection)
SetReadOnly()

将集合设置为只读。

(继承自 ProviderCollection)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
ICollection.CopyTo(Array, Int32)

从特定数组索引开始,将数组 ProviderCollection 的元素复制到数组。

(继承自 ProviderCollection)

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

适用于

另请参阅