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)

擴充方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於

另請參閱