ConfigurationElementCollection 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ConfigurationElementCollection 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ConfigurationElementCollection() |
初始化 ConfigurationElementCollection 類別的新執行個體。 |
| ConfigurationElementCollection(IComparer) |
建立一個新的類別實例 ConfigurationElementCollection 。 |
ConfigurationElementCollection()
初始化 ConfigurationElementCollection 類別的新執行個體。
protected:
ConfigurationElementCollection();
protected ConfigurationElementCollection();
Protected Sub New ()
備註
當你 ConfigurationElementCollection 的應用程式需要建立自訂 ConfigurationElementCollection的 .
適用於
ConfigurationElementCollection(IComparer)
建立一個新的類別實例 ConfigurationElementCollection 。
protected:
ConfigurationElementCollection(System::Collections::IComparer ^ comparer);
protected ConfigurationElementCollection(System.Collections.IComparer comparer);
new System.Configuration.ConfigurationElementCollection : System.Collections.IComparer -> System.Configuration.ConfigurationElementCollection
Protected Sub New (comparer As IComparer)
參數
例外狀況
comparer 是 null。
備註
用來 IComparer 設定比較器以使用。 例如,你可以使用大小寫不區分的比較器,讓關鍵字母變得不敏感。