CertificateStoreSaveToFile Method
Saves the certificate store into a file.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public bool SaveToFile(
	string filename,
	CertStoreFileType fileType,
	string pfxPassword
)

Parameters

filename
Type: SystemString
The filename of the file to be saved.
fileType
Type: MailBee.SecurityCertStoreFileType
The format of the file store to be saved.
pfxPassword
Type: SystemString
PFX password to protect the store from unauthorized access, or a null reference (Nothing in Visual Basic) if fileType is not Pfx.

Return Value

Type: Boolean
true if the store was successfully saved to disk; otherwise, false.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionfilename is a null reference (Nothing in Visual Basic).
MailBeeCertificateStoreWin32ExceptionWin32 returned an error on attempt to save the store to disk and ThrowExceptions is true.
Examples
The example is available in AddCertificates(CertificateCollection, Boolean) topic.
See Also