XmlSchema.Compile Método

Definição

Compila o XML Schema Object Model (SOM) em informação do esquema para validação. Usado para verificar a estrutura sintática e semântica do SOM construído programaticamente. A verificação de validação semântica é realizada durante a compilação.

Sobrecargas

Name Description
Compile(ValidationEventHandler)
Obsoleto.
Obsoleto.
Obsoleto.

Compila o XML Schema Object Model (SOM) em informação do esquema para validação. Usado para verificar a estrutura sintática e semântica do SOM construído programaticamente. A verificação de validação semântica é realizada durante a compilação.

Compile(ValidationEventHandler, XmlResolver)
Obsoleto.
Obsoleto.
Obsoleto.

Compila o XML Schema Object Model (SOM) em informação do esquema para validação. Usado para verificar a estrutura sintática e semântica do SOM construído programaticamente. A verificação de validação semântica é realizada durante a compilação.

Observações

Importante

O método Compile está obsoleto na versão 2.0 do Microsoft .NET Framework e foi substituído pelo método XmlSchemaSet.Compile.

Compile(ValidationEventHandler)

Origem:
XmlSchema.cs
Origem:
XmlSchema.cs
Origem:
XmlSchema.cs
Origem:
XmlSchema.cs
Origem:
XmlSchema.cs

Atenção

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

Atenção

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

Atenção

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

Compila o XML Schema Object Model (SOM) em informação do esquema para validação. Usado para verificar a estrutura sintática e semântica do SOM construído programaticamente. A verificação de validação semântica é realizada durante a compilação.

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)

Parâmetros

validationEventHandler
ValidationEventHandler

O gestor de eventos de validação que recebe informações sobre erros de validação do Esquema XML.

Atributos

Observações

Importante

O método Compile está obsoleto na versão 2.0 do Microsoft .NET Framework e foi substituído pelo método XmlSchemaSet.Compile.

Aplica-se a

Compile(ValidationEventHandler, XmlResolver)

Origem:
XmlSchema.cs
Origem:
XmlSchema.cs
Origem:
XmlSchema.cs
Origem:
XmlSchema.cs
Origem:
XmlSchema.cs

Atenção

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

Atenção

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

Atenção

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

Compila o XML Schema Object Model (SOM) em informação do esquema para validação. Usado para verificar a estrutura sintática e semântica do SOM construído programaticamente. A verificação de validação semântica é realizada durante a compilação.

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)

Parâmetros

validationEventHandler
ValidationEventHandler

O gestor de eventos de validação que recebe informações sobre os erros de validação do Esquema XML.

resolver
XmlResolver

Usam-se XmlResolver para resolver espaços de nomes referenciados em include e import elementos.

Atributos

Observações

Se o SOM referenciar outros namespaces através dos import elementos ou, include o XmlResolver é usado para resolver essas referências. Se o resolvedor estiver definido para null, isto indica que o utilizador não se preocupa com a resolução import ou include elementos. Neste caso, as referências não são resolvidas. O resolvedor não é armazenado em cache após a conclusão do Compile método.

Importante

O método Compile está obsoleto na versão 2.0 do Microsoft .NET Framework e foi substituído pelo método XmlSchemaSet.Compile.

Importante

O Compile método utiliza a XmlUrlResolver classe para resolver esquemas externos referenciados em incluir, importar ou redefinir elementos por defeito. Podes desativar a resolução dos esquemas externos passando null como XmlResolver parâmetro.

Aplica-se a