Freigeben über


OpenXmlPart.ValidateXml-Methode (String, ValidationEventHandler)

HINWEIS: Diese API ist jetzt veraltet.

Validate the xml content of the part according the specified schema.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ObsoleteAttribute("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.",  _
    False)> _
Public Sub ValidateXml ( _
    schemaFile As String, _
    validationEventHandler As ValidationEventHandler _
)
'Usage
Dim instance As OpenXmlPart
Dim schemaFile As String
Dim validationEventHandler As ValidationEventHandler

instance.ValidateXml(schemaFile, validationEventHandler)
[ObsoleteAttribute("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,
    ValidationEventHandler validationEventHandler
)

Parameter

Siehe auch

Referenz

OpenXmlPart Klasse

OpenXmlPart-Member

ValidateXml Überladung

DocumentFormat.OpenXml.Packaging-Namespace