XmlSchemas.Compile(ValidationEventHandler, Boolean) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
XML スキーマ内の要素名と属性名を処理し、必要に応じて XML スキーマを検証します。
この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。
public:
void Compile(System::Xml::Schema::ValidationEventHandler ^ handler, bool fullCompile);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public void Compile(System.Xml.Schema.ValidationEventHandler? handler, bool fullCompile);
public void Compile(System.Xml.Schema.ValidationEventHandler? handler, bool fullCompile);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public void Compile(System.Xml.Schema.ValidationEventHandler? handler, bool fullCompile);
public void Compile(System.Xml.Schema.ValidationEventHandler handler, bool fullCompile);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.Compile : System.Xml.Schema.ValidationEventHandler * bool -> unit
member this.Compile : System.Xml.Schema.ValidationEventHandler * bool -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.Compile : System.Xml.Schema.ValidationEventHandler * bool -> unit
Public Sub Compile (handler As ValidationEventHandler, fullCompile As Boolean)
パラメーター
- handler
- ValidationEventHandler
厳密なパラメーターがValidationEventHandlerに設定されている場合、XML スキーマの検証中にエラーと警告を処理するコールバック メソッドを指定するtrue。
- fullCompile
- Boolean
true
Compile(ValidationEventHandler, Boolean) クラスのXmlSchemas メソッドを使用してコレクション内の XML スキーマを検証する場合は %。それ以外の場合はfalse。
- 属性
注釈
次の一覧は、 Compile メソッドが呼び出される状況を示しています。
Web サービスとして識別されるクラスからServiceDescriptionReflectorオブジェクトを作成するときに、ServiceDescription クラスによって。
Web サービス記述言語 (WSDL) ドキュメントからクライアント プロキシ クラスまたは抽象サーバー クラスを生成するときに、Wsdl.exe ツールまたは ServiceDescriptionImporter クラスによって。
アセンブリで見つかった型から XML スキーマを生成するときに、Xsd.exe ツールによって。
Compile メソッドを直接呼び出す代わりに、前述のクラスまたはツールを使用します。