XmlSchema.Compile Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Kompilerar XML-schemaobjektmodellen (SOM) till schemainformation för validering. Används för att kontrollera syntaktisk och semantisk struktur i programmatiskt byggda SOM. Semantisk valideringskontroll utförs under kompileringen.
Överlagringar
| Name | Description |
|---|---|
| Compile(ValidationEventHandler) |
Föråldrad.
Föråldrad.
Föråldrad.
Kompilerar XML-schemaobjektmodellen (SOM) till schemainformation för validering. Används för att kontrollera syntaktisk och semantisk struktur i programmatiskt byggda SOM. Semantisk valideringskontroll utförs under kompileringen. |
| Compile(ValidationEventHandler, XmlResolver) |
Föråldrad.
Föråldrad.
Föråldrad.
Kompilerar XML-schemaobjektmodellen (SOM) till schemainformation för validering. Används för att kontrollera syntaktisk och semantisk struktur i programmatiskt byggda SOM. Semantisk valideringskontroll utförs under kompileringen. |
Kommentarer
Important
Metoden Compile är föråldrad i Microsoft .NET Framework version 2.0 och har ersatts av metoden XmlSchemaSet.Compile.
Compile(ValidationEventHandler)
- Källa:
- XmlSchema.cs
- Källa:
- XmlSchema.cs
- Källa:
- XmlSchema.cs
- Källa:
- XmlSchema.cs
- Källa:
- XmlSchema.cs
Varning
XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation.
Varning
Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202
Varning
Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202
Kompilerar XML-schemaobjektmodellen (SOM) till schemainformation för validering. Används för att kontrollera syntaktisk och semantisk struktur i programmatiskt byggda SOM. Semantisk valideringskontroll utförs under kompileringen.
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)
Parametrar
- validationEventHandler
- ValidationEventHandler
Valideringshändelsehanteraren som tar emot information om verifieringsfel för XML-schema.
- Attribut
Kommentarer
Important
Metoden Compile är föråldrad i Microsoft .NET Framework version 2.0 och har ersatts av metoden XmlSchemaSet.Compile.
Gäller för
Compile(ValidationEventHandler, XmlResolver)
- Källa:
- XmlSchema.cs
- Källa:
- XmlSchema.cs
- Källa:
- XmlSchema.cs
- Källa:
- XmlSchema.cs
- Källa:
- XmlSchema.cs
Varning
XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation.
Varning
Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202
Varning
Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202
Kompilerar XML-schemaobjektmodellen (SOM) till schemainformation för validering. Används för att kontrollera syntaktisk och semantisk struktur i programmatiskt byggda SOM. Semantisk valideringskontroll utförs under kompileringen.
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)
Parametrar
- validationEventHandler
- ValidationEventHandler
Valideringshändelsehanteraren som tar emot information om verifieringsfel för XML-schema.
- resolver
- XmlResolver
Används XmlResolver för att matcha namnområden som refereras till i include och import element.
- Attribut
Kommentarer
Om SOM refererar till andra namnområden via elementen importinclude eller XmlResolver används för att matcha dessa referenser. Om matcharen är inställd nullpå anger detta att användaren inte bryr sig om att import matcha eller include element. I det här fallet löses inte referenserna. Matcharen cachelagras inte när Compile metoden har slutförts.
Important
Metoden Compile är föråldrad i Microsoft .NET Framework version 2.0 och har ersatts av metoden XmlSchemaSet.Compile.
Important
Metoden Compile använder XmlUrlResolver klassen för att matcha externa scheman som refereras i inkludera, importera eller omdefiniera element som standard. Du kan inaktivera upplösningen för externa scheman genom att skicka null som XmlResolver parameter.