OpenXmlPackage.Validate(OpenXmlPackageValidationSettings) 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.
Caution
This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.
Validates the package. This method does not validate the XML content in each part.
public void Validate (DocumentFormat.OpenXml.Packaging.OpenXmlPackageValidationSettings validationSettings);
[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 Validate (DocumentFormat.OpenXml.Packaging.OpenXmlPackageValidationSettings validationSettings);
member this.Validate : DocumentFormat.OpenXml.Packaging.OpenXmlPackageValidationSettings -> 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.Validate : DocumentFormat.OpenXml.Packaging.OpenXmlPackageValidationSettings -> unit
Public Sub Validate (validationSettings As OpenXmlPackageValidationSettings)
Parameters
- validationSettings
- OpenXmlPackageValidationSettings
The OpenXmlPackageValidationSettings for validation events.
- Attributes
Remarks
If validationSettings is null or no EventHandler is set, the default behavior is to throw an OpenXmlPackageException on the validation error.