MailMessageAttachSignature Method (CmsSigner, 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.2
Syntaxpublic virtual MailMessage AttachSignature(
CmsSigner signer,
bool detached
)
Public Overridable Function AttachSignature (
signer As CmsSigner,
detached As Boolean
) As MailMessage
public:
virtual MailMessage^ AttachSignature(
CmsSigner^ signer,
bool detached
)
abstract AttachSignature :
signer : CmsSigner *
detached : bool -> MailMessage
override AttachSignature :
signer : CmsSigner *
detached : bool -> MailMessage
Parameters
- signer
- Type: System.Security.Cryptography.PkcsCmsSigner
System.Security.Cryptography.Pkcs.CmsSigner. - 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:
MailMessageThe signed MailMessage.
See Also