NameValueFileSectionHandler.Create(Object, Object, XmlNode) 方法

定義

建立新的組態處理器,並根據指定的參數將其加入區段處理程式集合。

public:
 virtual System::Object ^ Create(System::Object ^ parent, System::Object ^ configContext, System::Xml::XmlNode ^ section);
public object Create(object parent, object configContext, System.Xml.XmlNode section);
abstract member Create : obj * obj * System.Xml.XmlNode -> obj
override this.Create : obj * obj * System.Xml.XmlNode -> obj
Public Function Create (parent As Object, configContext As Object, section As XmlNode) As Object

參數

parent
Object

父物件。

configContext
Object

配置上下文物件。

section
XmlNode

該區段的 XML 節點。

傳回

一個配置物件。

實作

例外狀況

屬性中指定的filesection檔案存在但無法載入。

-或-

name屬性section的屬性與該屬性中指定的file檔案根元素不相符。

備註

parent物件參數在相應的父組設定區段中扮演設定角色。 configContext物件參數是設定區段處理器計算配置值的虛擬路徑。 通常此參數為保留參數,且為 null。 參數 section 為 , XmlNode 包含待處理的設定資訊。 該 section 參數可直接存取設定區塊的 XML 內容。

適用於