Freigeben über


OpenXmlPackage.Validate-Methode

HINWEIS: Diese API ist jetzt veraltet.

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
)

Parameter

Hinweise

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

Siehe auch

Referenz

OpenXmlPackage Klasse

OpenXmlPackage-Member

DocumentFormat.OpenXml.Packaging-Namespace