NameValueFileSectionHandler 類別

定義

提供對組態檔的存取。 此型別支援 .NET 組態基礎結構,且其目的不是要直接從您的程式碼中使用。

public ref class NameValueFileSectionHandler : System::Configuration::IConfigurationSectionHandler
public class NameValueFileSectionHandler : System.Configuration.IConfigurationSectionHandler
type NameValueFileSectionHandler = class
    interface IConfigurationSectionHandler
Public Class NameValueFileSectionHandler
Implements IConfigurationSectionHandler
繼承
NameValueFileSectionHandler
實作

備註

file<appSettings>段的 屬性會指定包含自定義應用程式組態設定的外部檔案相對路徑。 檔案中提供的詳細數據會作為組態檔中的區 <appSettings> 段。 檔案是使用 NameValueFileSectionHandler 類別來存取。 檔案的根元素必須符合參考它的區段。

建構函式

NameValueFileSectionHandler()

初始化 NameValueFileSectionHandler 類別的新執行個體。

方法

Create(Object, Object, XmlNode)

建立新的組態處理常式,並根據指定之參數將它加入區段處理常式集合中。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱