AttachSignature

AttachSignature(X509Certificate2, bool)

Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.

public virtual MailMessage AttachSignature(X509Certificate2 certificate, bool detached)
Parameter Type Description
certificate X509Certificate2 X.509 certificate.
detached Boolean .If detached is true, the signature is detached.If detached is false(the default), the signature is not detached.

See Also


AttachSignature(CmsSigner, bool)

Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.

public virtual MailMessage AttachSignature(CmsSigner signer, bool detached)
Parameter Type Description
signer CmsSigner System.Security.Cryptography.Pkcs.CmsSigner.
detached Boolean .If detached is true, the signature is detached.If detached is false(the default), the signature is not detached.

Return Value

The signed MailMessage.

See Also


AttachSignature(X509Certificate2)

Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.

public virtual MailMessage AttachSignature(X509Certificate2 certificate)
Parameter Type Description
certificate X509Certificate2 X.509 certificate.

Return Value

The signed MailMessage.

See Also


AttachSignature(CmsSigner)

Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.

public virtual MailMessage AttachSignature(CmsSigner signer)
Parameter Type Description
signer CmsSigner System.Security.Cryptography.Pkcs.CmsSigner.

Return Value

The signed MailMessage.

See Also