Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    SignatureValidationOptions.ValidationFlags Property

    Specifies the validation flags.

    Namespace: DevExpress.Office.DigitalSignatures

    Assembly: DevExpress.Docs.v25.1.dll

    NuGet Package: DevExpress.Document.Processor

    #Declaration

    public ValidationFlags ValidationFlags { get; set; }

    #Property Value

    Type Description
    ValidationFlags

    An enumeration value that indicates a validation flag.

    Available values:

    Name Description
    None

    No flags.

    ValidateSignature

    Validate a signature.

    ValidateSignatureCertificate

    Validate the signature certificate.

    ValidatePackageIntegrity

    Validate package integrity.

    ValidateTimestamp

    Validate a timestamp.

    ValidateTimestampCertificate

    Validate the timestamp certificate.

    All

    All flags.

    #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