Compartilhar via


OpenXmlPackage.Validate(OpenXmlPackageValidationSettings) Método

Definição

Cuidado

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

Valida o pacote. Esse método não valida o conteúdo XML em cada parte.

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)

Parâmetros

validationSettings
OpenXmlPackageValidationSettings

O OpenXmlPackageValidationSettings para eventos de validação.

Atributos

Comentários

Se validationSettings for nulo ou nenhum EventHandler for definido, o comportamento padrão será lançar um OpenXmlPackageException no erro de validação.

Aplica-se a