Поделиться через


OpenXmlPackage.Validate(OpenXmlPackageValidationSettings) Метод

Определение

Внимание!

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

Проверяет пакет. Этот метод не проверяет XML-содержимое в каждой части.

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)

Параметры

validationSettings
OpenXmlPackageValidationSettings

OpenXmlPackageValidationSettings для событий проверки.

Атрибуты

Комментарии

Если параметр validationSettings имеет значение NULL или не задан параметр EventHandler, по умолчанию создается исключение OpenXmlPackageException в случае ошибки проверки.

Применяется к