OpenXmlPart.ValidateXml 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 用于验证事件。
- 属性