OpenXmlPackage.Validate(OpenXmlPackageValidationSettings) Method

Definition

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.

Applies to