Поделиться через


OpenXmlPart.ValidateXml Метод

Определение

Перегрузки

ValidateXml(String, ValidationEventHandler)
Устаревшие..

Проверяет XML-содержимое части с помощью указанной схемы.

ValidateXml(XmlSchemaSet, ValidationEventHandler)
Устаревшие..

Проверяет XML-содержимое части с помощью указанной схемы.

ValidateXml(String, ValidationEventHandler)

Внимание!

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

Проверяет XML-содержимое части с помощью указанной схемы.

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)

Параметры

schemaFile
String

Используемая XML-схема.

validationEventHandler
ValidationEventHandler

ValidationEventHandler для событий проверки.

Атрибуты

Применяется к

ValidateXml(XmlSchemaSet, ValidationEventHandler)

Внимание!

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

Проверяет XML-содержимое части с помощью указанной схемы.

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)

Параметры

schemas
XmlSchemaSet

Набор используемых XML-схем.

validationEventHandler
ValidationEventHandler

ValidationEventHandler для событий проверки.

Атрибуты

Применяется к