CertificateSaveToFileAsync Method

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Task<bool> SaveToFileAsync(
	string filename,
	CertFileType fileType,
	string pfxPassword
)

Parameters

filename
Type: SystemString
The path to the file.
fileType
Type: MailBee.SecurityCertFileType
The format of the file to save.
pfxPassword
Type: SystemString
PFX password if fileType is Pfx, or a null reference (Nothing in Visual Basic).

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the certificate was successfully saved to disk; otherwise, false.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionfilename is a null reference (Nothing in Visual Basic) or an empty string.
MailBeeIOExceptionThe specified file can not be written to.
MailBeeCertificateWin32ExceptionWin32 returned an error during during processing the certificate data.
See Also