OpenXmlPart.ValidateXml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ValidateXml(String, ValidationEventHandler) |
Obsolete.
Validates the XML content of the part by using the specified schema. |
ValidateXml(XmlSchemaSet, ValidationEventHandler) |
Obsolete.
Validates the XML content of the part by using the specified schema. |
ValidateXml(String, ValidationEventHandler)
Caution
This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.
Validates the XML content of the part by using the specified schema.
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)
Parameters
- schemaFile
- String
The XML schema to be used.
- validationEventHandler
- ValidationEventHandler
ValidationEventHandler for validation events.
- Attributes
Applies to
ValidateXml(XmlSchemaSet, ValidationEventHandler)
Caution
This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.
Validates the XML content of the part by using the specified schema.
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)
Parameters
- schemas
- XmlSchemaSet
The set of XML schemas to be used.
- validationEventHandler
- ValidationEventHandler
ValidationEventHandler for validation events.
- Attributes
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應