SmimeResetToDefaults Method
Resets S/MIME settings to default values.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public bool ResetToDefaults()

Return Value

Type: Boolean
true if succeeded; otherwise, false.
Exceptions
ExceptionCondition
MailBeeCryptoProviderWin32ExceptionFailed to create an instance of CryptoServiceProvider representing the default CSP and ThrowExceptions is true.
Remarks

This method reverts Provider property value back to the default CSP (Base). This property is meaningful for .NET Core 1.0/1.1 edition only.

The algorithm to use for encryption (EncryptionAlgorithm property) is set to RSA DES (szOID_RSA_DES_EDE3_CBC).

The algorithm to use for signing messages (HashAlgorithm property) is set to SHA1 (szOID_OIWSEC_sha1).

Examples
The example is available in CryptoServiceProvider topic.
See Also