Compartilhar via


OpenXmlPart.ValidateXml Método

Definição

Sobrecargas

ValidateXml(String, ValidationEventHandler)
Obsoleto.

Valida o conteúdo XML da parte usando o esquema especificado.

ValidateXml(XmlSchemaSet, ValidationEventHandler)
Obsoleto.

Valida o conteúdo XML da parte usando o esquema especificado.

ValidateXml(String, ValidationEventHandler)

Cuidado

This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.

Valida o conteúdo XML da parte usando o esquema especificado.

public void ValidateXml (string schemaFile, System.Xml.Schema.ValidationEventHandler validationEventHandler);
[System.Obsolete("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", false)]
public void ValidateXml (string schemaFile, System.Xml.Schema.ValidationEventHandler validationEventHandler);
member this.ValidateXml : string * System.Xml.Schema.ValidationEventHandler -> unit
[<System.Obsolete("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", false)>]
member this.ValidateXml : string * System.Xml.Schema.ValidationEventHandler -> unit
Public Sub ValidateXml (schemaFile As String, validationEventHandler As ValidationEventHandler)

Parâmetros

schemaFile
String

O esquema XML a ser usado.

validationEventHandler
ValidationEventHandler

ValidationEventHandler para eventos de validação.

Atributos

Aplica-se a

ValidateXml(XmlSchemaSet, ValidationEventHandler)

Cuidado

This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.

Valida o conteúdo XML da parte usando o esquema especificado.

public void ValidateXml (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.ValidationEventHandler validationEventHandler);
[System.Obsolete("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", false)]
public void ValidateXml (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.ValidationEventHandler validationEventHandler);
member this.ValidateXml : System.Xml.Schema.XmlSchemaSet * System.Xml.Schema.ValidationEventHandler -> unit
[<System.Obsolete("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", false)>]
member this.ValidateXml : System.Xml.Schema.XmlSchemaSet * System.Xml.Schema.ValidationEventHandler -> unit
Public Sub ValidateXml (schemas As XmlSchemaSet, validationEventHandler As ValidationEventHandler)

Parâmetros

schemas
XmlSchemaSet

O conjunto de esquemas XML a ser usado.

validationEventHandler
ValidationEventHandler

ValidationEventHandler para eventos de validação.

Atributos

Aplica-se a