MailMessageIsSigned Property
Indicates if the message has a digital signature.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public bool IsSigned { get; }

Property Value

Type: Boolean
true if the message is signed with a digital signature; otherwise, false.
If the message is also encrypted (IsEncrypted is true), you can't usually tell if it's signed before you decrypt it. Thus, even if IsSigned is false, you should decrypt the message first and then check IsSigned of the decrypted message (available through DecryptedMessage property of the SmimeResult object returned by Decrypt(MailMessage) or by DecryptAndVerify(MailMessage, MessageVerificationFlags) method).
This sample loads the message from .EML file and reports whether the message is signed.
using System;
using MailBee;
using MailBee.Mime;

class Sample
    static void Main(string[] args)

        // Load the message from file.
        MailMessage msg = new MailMessage();

        if (msg.IsSigned)
            Console.WriteLine("The message is signed.");
See Also