MailBee.NET Objects 4.0

Smime.ResetToDefaults Method 

Resets S/MIME settings to default values.

public bool ResetToDefaults();

Return Value

true if succeeded; otherwise, false.

Remarks

This method reverts Provider property value back to the default CSP (Base).

The algorithm to use for encryption (EncryptionAlgorithm property) is set to RC4.

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

Exceptions

Exception TypeCondition
MailBeeCryptoProviderWin32ExceptionFailed to create an instance of CryptoServiceProvider representing the default CSP and ThrowExceptions is true.

Example

The example is available in CryptoServiceProvider topic.

See Also

Smime Class | MailBee.Security Namespace