CertificateSaveToFile Method |
Saves the certificate into a file on disk.
Namespace: MailBee.SecurityAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public bool SaveToFile(
string filename,
CertFileType fileType,
string pfxPassword
)
Public Function SaveToFile (
filename As String,
fileType As CertFileType,
pfxPassword As String
) As Boolean
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:
Booleantrue if the certificate was successfully saved to disk; otherwise, false.
Exceptions See Also