ProviderCollection 类

定义

表示从 ProviderBase. 继承的提供程序对象的集合。

public ref class ProviderCollection : System::Collections::ICollection
public class ProviderCollection : System.Collections.ICollection
type ProviderCollection = class
    interface ICollection
    interface IEnumerable
type ProviderCollection = class
    interface IEnumerable
    interface ICollection
Public Class ProviderCollection
Implements ICollection
继承
ProviderCollection
派生
实现

注解

ProviderCollection 类利用基础 Hashtable 对象来存储提供程序名称/值对。

构造函数

名称 说明
ProviderCollection()

初始化 ProviderCollection 类的新实例。

属性

名称 说明
Count

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

IsSynchronized

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

Item[String]

获取具有指定名称的提供程序。

SyncRoot

获取当前对象。

方法

名称 说明
Add(ProviderBase)

将提供程序添加到集合。

Clear()

从集合中删除所有项。

CopyTo(ProviderBase[], Int32)

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

Equals(Object)

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

(继承自 Object)
GetEnumerator()

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

GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
Remove(String)

从集合中删除提供程序。

SetReadOnly()

将集合设置为只读。

ToString()

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

(继承自 Object)

显式接口实现

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

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

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

适用于