SettingsProviderCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一組應用程式設定提供者。
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 類別是類別的 ProviderCollection 直接擴充,用來提供物件的儲存 SettingsProvider 。
該 ApplicationSettingsBase 類別利用此集合管理與其應用程式設定屬性相關的設定提供者,透過 SettingsProviderAttribute。
建構函式
| 名稱 | Description |
|---|---|
| SettingsProviderCollection() |
初始化 SettingsProviderCollection 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| Count |
會取得集合中提供者的數量。 (繼承來源 ProviderCollection) |
| IsSynchronized |
會獲得一個值,表示存取集合是否同步(執行緒安全)。 (繼承來源 ProviderCollection) |
| Item[String] |
取得集合中與指定名稱相符的設定提供者。 |
| SyncRoot |
取得當前物件。 (繼承來源 ProviderCollection) |
方法
| 名稱 | Description |
|---|---|
| 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) |
明確介面實作
| 名稱 | Description |
|---|---|
| ICollection.CopyTo(Array, Int32) |
將 的 ProviderCollection 元素複製到陣列,從特定陣列索引開始。 (繼承來源 ProviderCollection) |
擴充方法
| 名稱 | Description |
|---|---|
| AsParallel(IEnumerable) |
啟用查詢的平行處理。 |
| AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |
| Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
| OfType<TResult>(IEnumerable) |
根據指定的型別篩選 IEnumerable 的專案。 |