Partager via


OpenXmlPackage.Validate(OpenXmlPackageValidationSettings) Méthode

Définition

Attention

This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.

Valide le package. Cette méthode ne valide pas le contenu XML dans chaque partie.

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)

Paramètres

validationSettings
OpenXmlPackageValidationSettings

OpenXmlPackageValidationSettings pour les événements de validation.

Attributs

Remarques

Si validationSettings a la valeur null ou si aucun gestionnaire d’événements n’est défini, le comportement par défaut consiste à lever une OpenXmlPackageException sur l’erreur de validation.

S’applique à