Skip to main content
All docs
V22.1
.NET Framework 4.5.2+

SignatureValidationOptions.ValidationFlags Property

Specifies the validation flags.

Namespace: DevExpress.Office.DigitalSignatures

Assembly: DevExpress.Docs.v22.1.dll

Declaration

public ValidationFlags ValidationFlags { get; set; }

Property Value

Type Description
ValidationFlags

An enumeration value that indicates a validation flag.

Remarks

Use the ValidationFlags property to exclude validation steps. The code sample below excludes signature and timestamp certificate validation.

using DevExpress.Office.DigitalSignatures;

private static void ValidateSignature(string path)
{
    DocumentSigner validator = new DocumentSigner();

    SignatureValidationOptions validationOptions =
     new SignatureValidationOptions();
    validationOptions.ValidationFlags =
     ~ValidationFlags.ValidateSignatureCertificate & ~ValidationFlags.ValidateTimestampCertificate;

    validator.Validate(path, validationOptions);
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the ValidationFlags property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also