Partager via


OpenXmlPackage.Validate Method

NOTE: This API is now obsolete.

Validate the package ( do not validate the xml content in each part ).

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 Validate ( _
    validationSettings As OpenXmlPackageValidationSettings _
)
'Usage
Dim instance As OpenXmlPackage
Dim validationSettings As OpenXmlPackageValidationSettings

instance.Validate(validationSettings)
[ObsoleteAttribute("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", 
    false)]
public void Validate(
    OpenXmlPackageValidationSettings validationSettings
)

Parameters

Remarks

If the validationSettings is null or no EventHandler is set, the default behavior is throw OpenXmlPackageException on validating error.

See Also

Reference

OpenXmlPackage Class

OpenXmlPackage Members

DocumentFormat.OpenXml.Packaging Namespace