XmlSchema.Compile Metode

Definisi

Mengkompilasi Xml Schema Object Model (SOM) ke dalam informasi skema untuk validasi. Digunakan untuk memeriksa struktur sintik dan semantik dari SOM yang dibangun secara terprogram. Pemeriksaan validasi semantik dilakukan selama kompilasi.

Overload

Nama Deskripsi
Compile(ValidationEventHandler)
Kedaluwarsa.
Kedaluwarsa.
Kedaluwarsa.

Mengkompilasi Xml Schema Object Model (SOM) ke dalam informasi skema untuk validasi. Digunakan untuk memeriksa struktur sintik dan semantik dari SOM yang dibangun secara terprogram. Pemeriksaan validasi semantik dilakukan selama kompilasi.

Compile(ValidationEventHandler, XmlResolver)
Kedaluwarsa.
Kedaluwarsa.
Kedaluwarsa.

Mengkompilasi Xml Schema Object Model (SOM) ke dalam informasi skema untuk validasi. Digunakan untuk memeriksa struktur sintik dan semantik dari SOM yang dibangun secara terprogram. Pemeriksaan validasi semantik dilakukan selama kompilasi.

Keterangan

Important

Metode Compile usang dalam Microsoft .NET Framework versi 2.0 dan telah digantikan oleh metode XmlSchemaSet.Compile.

Compile(ValidationEventHandler)

Sumber:
XmlSchema.cs
Sumber:
XmlSchema.cs
Sumber:
XmlSchema.cs
Sumber:
XmlSchema.cs
Sumber:
XmlSchema.cs

Perhatian

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

Perhatian

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

Perhatian

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

Mengkompilasi Xml Schema Object Model (SOM) ke dalam informasi skema untuk validasi. Digunakan untuk memeriksa struktur sintik dan semantik dari SOM yang dibangun secara terprogram. Pemeriksaan validasi semantik dilakukan selama kompilasi.

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. https://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. 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("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. https://go.microsoft.com/fwlink/?linkid=14202")>]
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

Penanganan aktivitas validasi yang menerima informasi tentang kesalahan validasi Skema XML.

Atribut

Keterangan

Important

Metode Compile usang dalam Microsoft .NET Framework versi 2.0 dan telah digantikan oleh metode XmlSchemaSet.Compile.

Berlaku untuk

Compile(ValidationEventHandler, XmlResolver)

Sumber:
XmlSchema.cs
Sumber:
XmlSchema.cs
Sumber:
XmlSchema.cs
Sumber:
XmlSchema.cs
Sumber:
XmlSchema.cs

Perhatian

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

Perhatian

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

Perhatian

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

Mengkompilasi Xml Schema Object Model (SOM) ke dalam informasi skema untuk validasi. Digunakan untuk memeriksa struktur sintik dan semantik dari SOM yang dibangun secara terprogram. Pemeriksaan validasi semantik dilakukan selama kompilasi.

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. https://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. 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("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. https://go.microsoft.com/fwlink/?linkid=14202")>]
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

Penanganan aktivitas validasi yang menerima informasi tentang kesalahan validasi Skema XML.

resolver
XmlResolver

yang XmlResolver digunakan untuk mengatasi namespace yang dirujuk dalam include dan import elemen.

Atribut

Keterangan

Jika SOM mereferensikan namespace layanan lain melalui import elemen atau include , XmlResolver digunakan untuk menyelesaikan referensi ini. Jika resolver diatur ke null, ini menunjukkan bahwa pengguna tidak peduli tentang penyelesaian import atau include elemen. Dalam hal ini, referensi tidak diselesaikan. Resolver tidak di-cache setelah Compile metode selesai.

Important

Metode Compile usang dalam Microsoft .NET Framework versi 2.0 dan telah digantikan oleh metode XmlSchemaSet.Compile.

Important

Metode ini Compile menggunakan XmlUrlResolver kelas untuk mengatasi skema eksternal yang dirujuk termasuk, mengimpor, atau menentukan ulang elemen secara default. Anda dapat menonaktifkan resolusi skema eksternal dengan meneruskan null sebagai XmlResolver parameter.

Berlaku untuk