XmlSchemas.Compile(ValidationEventHandler, Boolean) Metoda

Definice

Zpracovává názvy elementů a atributů ve schématech XML a volitelně ověřuje schémata XML.

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

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)

Parametry

handler
ValidationEventHandler

A ValidationEventHandler , který určuje metodu zpětného volání, která zpracovává chyby a upozornění během ověřování schématu XML, pokud je striktní parametr nastaven na true.

fullCompile
Boolean

true k ověření schémat XML v kolekci pomocí Compile(ValidationEventHandler, Boolean) metody XmlSchemas třídy; jinak , false.

Atributy

Poznámky

Následující seznam uvádí situace, ve kterých Compile je volána metoda:

  • ServiceDescriptionReflector Podle třídy při vytváření ServiceDescription objektů z tříd, které jsou identifikovány jako webové služby.

  • Nástrojem Wsdl.exe nebo ServiceDescriptionImporter třídou při generování tříd proxy klientů nebo abstraktních tříd serverů z dokumentu WSDL (Web Services Description Language).

  • Nástrojem Xsd.exe při generování schémat XML z typů nalezených v sestaveních.

Místo přímého volání Compile metody použijte dříve uvedené třídy nebo nástroje.

Platí pro