次の方法で共有


OpenXmlPart.ValidateXml Method (XmlSchemaSet, ValidationEventHandler)

NOTE: This API is now obsolete.

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

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

Syntax

'宣言
<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 ( _
    schemas As XmlSchemaSet, _
    validationEventHandler As ValidationEventHandler _
)
'使用
Dim instance As OpenXmlPart
Dim schemas As XmlSchemaSet
Dim validationEventHandler As ValidationEventHandler

instance.ValidateXml(schemas, 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(
    XmlSchemaSet schemas,
    ValidationEventHandler validationEventHandler
)

Parameters

See Also

Reference

OpenXmlPart Class

OpenXmlPart Members

ValidateXml Overload

DocumentFormat.OpenXml.Packaging Namespace