MailMessageIsSigned Property
Indicates if the message has a digital signature.

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

Property Value

Type: Boolean
true if the message is signed with a digital signature; otherwise, false.
Remarks
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).
Examples
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();
        msg.LoadMessage(@"C:\Docs\TestMail1.eml");

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