MailMessageAttachSignature Method (X509Certificate2, Boolean)
Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.

Namespace: Aspose.Email
Assembly: Aspose.Email (in Aspose.Email.dll) Version: 20.1
Syntax
public virtual MailMessage AttachSignature(
	X509Certificate2 certificate,
	bool detached
)

Parameters

certificate
Type: System.Security.Cryptography.X509CertificatesX509Certificate2
X.509 certificate.
detached
Type: SystemBoolean
.If detached is true, the signature is detached.If detached is false(the default), the signature is not detached.

Return Value

Type: MailMessage
See Also