NameValueFileSectionHandler 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供存取設定檔的存取權限。 此類型支援 .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 類別存取的。 檔案的根元素必須與所指的區段相符。
建構函式
| 名稱 | Description |
|---|---|
| NameValueFileSectionHandler() |
初始化 NameValueFileSectionHandler 類別的新執行個體。 |
方法
| 名稱 | Description |
|---|---|
| Create(Object, Object, XmlNode) |
建立新的組態處理器,並根據指定的參數將其加入區段處理程式集合。 |
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetHashCode() |
做為預設哈希函式。 (繼承來源 Object) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |