XmlSchemas.Compile(ValidationEventHandler, Boolean) 方法

定義

處理 XML 結構描述中的項目和屬性名稱,並選擇性地驗證 XML 結構描述。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 void Compile(System::Xml::Schema::ValidationEventHandler ^ handler, bool fullCompile);
public void Compile (System.Xml.Schema.ValidationEventHandler? handler, bool fullCompile);
public void Compile (System.Xml.Schema.ValidationEventHandler handler, bool fullCompile);
member this.Compile : System.Xml.Schema.ValidationEventHandler * bool -> unit
Public Sub Compile (handler As ValidationEventHandler, fullCompile As Boolean)

參數

handler
ValidationEventHandler

ValidationEventHandler,在嚴格參數設為 true 時,指定 XML 結構描述驗證期間,處理錯誤和警告的回呼方法。

fullCompile
Boolean

true 表示使用 Compile(ValidationEventHandler, Boolean) 類別的 XmlSchemas 方法,驗證集合中的 XML 結構描述,否則為 false

備註

下列清單會識別呼叫 方法的情況 Compile

不要直接呼叫 Compile 方法,而是使用先前提及的類別或工具。

適用於