XmlSchema.Compile Methode

Definition

Kompiliert das XML-Schema-Objektmodell (SOM) für die Validierung in Schemainformationen. Wird zur Validierung der syntaktischen und semantischen Struktur des programmgesteuert erstellten SOM verwendet. Semantische Validierung wird während der Kompilierung durchgeführt.

Überlädt

Compile(ValidationEventHandler)
Veraltet.
Veraltet.
Veraltet.

Kompiliert das XML-Schema-Objektmodell (SOM) für die Validierung in Schemainformationen. Wird zur Validierung der syntaktischen und semantischen Struktur des programmgesteuert erstellten SOM verwendet. Semantische Validierung wird während der Kompilierung durchgeführt.

Compile(ValidationEventHandler, XmlResolver)
Veraltet.
Veraltet.
Veraltet.

Kompiliert das XML-Schema-Objektmodell (SOM) für die Validierung in Schemainformationen. Wird zur Validierung der syntaktischen und semantischen Struktur des programmgesteuert erstellten SOM verwendet. Semantische Validierung wird während der Kompilierung durchgeführt.

Hinweise

Wichtig

Die Compile -Methode ist in der Microsoft .NET Framework Version 2.0 veraltet und wurde durch die XmlSchemaSet.Compile -Methode ersetzt.

Compile(ValidationEventHandler)

Source:
XmlSchema.cs
Source:
XmlSchema.cs
Source:
XmlSchema.cs

Achtung

Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202

Achtung

XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation.

Achtung

Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202

Kompiliert das XML-Schema-Objektmodell (SOM) für die Validierung in Schemainformationen. Wird zur Validierung der syntaktischen und semantischen Struktur des programmgesteuert erstellten SOM verwendet. Semantische Validierung wird während der Kompilierung durchgeführt.

public:
 void Compile(System::Xml::Schema::ValidationEventHandler ^ validationEventHandler);
[System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Compile (System.Xml.Schema.ValidationEventHandler? validationEventHandler);
[System.Obsolete("XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation.")]
public void Compile (System.Xml.Schema.ValidationEventHandler? validationEventHandler);
[System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Compile (System.Xml.Schema.ValidationEventHandler validationEventHandler);
[System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Compile (System.Xml.Schema.ValidationEventHandler validationEventHandler);
public void Compile (System.Xml.Schema.ValidationEventHandler validationEventHandler);
[<System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Compile : System.Xml.Schema.ValidationEventHandler -> unit
[<System.Obsolete("XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation.")>]
member this.Compile : System.Xml.Schema.ValidationEventHandler -> unit
[<System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Compile : System.Xml.Schema.ValidationEventHandler -> unit
member this.Compile : System.Xml.Schema.ValidationEventHandler -> unit
Public Sub Compile (validationEventHandler As ValidationEventHandler)

Parameter

validationEventHandler
ValidationEventHandler

Der Ereignishandler für die Validierung, der Informationen über Fehler bei der XML-Schema-Validierung empfängt.

Attribute

Hinweise

Wichtig

Die Compile -Methode ist in der Microsoft .NET Framework Version 2.0 veraltet und wurde durch die XmlSchemaSet.Compile -Methode ersetzt.

Gilt für:

Compile(ValidationEventHandler, XmlResolver)

Source:
XmlSchema.cs
Source:
XmlSchema.cs
Source:
XmlSchema.cs

Achtung

Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202

Achtung

XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation.

Achtung

Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202

Kompiliert das XML-Schema-Objektmodell (SOM) für die Validierung in Schemainformationen. Wird zur Validierung der syntaktischen und semantischen Struktur des programmgesteuert erstellten SOM verwendet. Semantische Validierung wird während der Kompilierung durchgeführt.

public:
 void Compile(System::Xml::Schema::ValidationEventHandler ^ validationEventHandler, System::Xml::XmlResolver ^ resolver);
[System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Compile (System.Xml.Schema.ValidationEventHandler? validationEventHandler, System.Xml.XmlResolver? resolver);
[System.Obsolete("XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation.")]
public void Compile (System.Xml.Schema.ValidationEventHandler? validationEventHandler, System.Xml.XmlResolver? resolver);
[System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Compile (System.Xml.Schema.ValidationEventHandler validationEventHandler, System.Xml.XmlResolver resolver);
[System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Compile (System.Xml.Schema.ValidationEventHandler validationEventHandler, System.Xml.XmlResolver resolver);
public void Compile (System.Xml.Schema.ValidationEventHandler validationEventHandler, System.Xml.XmlResolver resolver);
[<System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Compile : System.Xml.Schema.ValidationEventHandler * System.Xml.XmlResolver -> unit
[<System.Obsolete("XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation.")>]
member this.Compile : System.Xml.Schema.ValidationEventHandler * System.Xml.XmlResolver -> unit
[<System.Obsolete("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Compile : System.Xml.Schema.ValidationEventHandler * System.Xml.XmlResolver -> unit
member this.Compile : System.Xml.Schema.ValidationEventHandler * System.Xml.XmlResolver -> unit
Public Sub Compile (validationEventHandler As ValidationEventHandler, resolver As XmlResolver)

Parameter

validationEventHandler
ValidationEventHandler

Der Ereignishandler für die Validierung, der Informationen über Fehler bei der XML-Schema-Validierung empfängt.

resolver
XmlResolver

Der XmlResolver, der zum Auflösen von Namespaces verwendet wird, auf die im include-Element und import-Element verwiesen wird.

Attribute

Hinweise

Wenn der SOM über das import - oder include -Element auf andere Namespaces verweist, wird verwendet, XmlResolver um diese Verweise aufzulösen. Wenn der Resolver auf nullfestgelegt ist, gibt dies an, dass sich der Benutzer nicht um das Auflösen import von Elementen oder include kümmert. In diesem Fall werden die Verweise nicht aufgelöst. Der Resolver wird nach Abschluss der Compile Methode nicht zwischengespeichert.

Wichtig

Die Compile -Methode ist in der Microsoft .NET Framework Version 2.0 veraltet und wurde durch die XmlSchemaSet.Compile -Methode ersetzt.

Wichtig

Die Compile -Methode verwendet die XmlUrlResolver -Klasse, um externe Schemas aufzulösen, auf die standardmäßig in Include-, Import- oder Neudefinitionselementen verwiesen wird. Sie können die Auflösung externer Schemas deaktivieren, indem Sie NULL als XmlResolver Parameter übergeben.

Gilt für: