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 的項目複製到陣列中。

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於