OpenXmlPackage.Validate(OpenXmlPackageValidationSettings) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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。