MailBee.NET Objects 4.0

Certificate Constructor (String, CertFileType, String)

Loads the certificate from a file and returns it as Certificate object.

public Certificate(
   string filename,
   CertFileType fileType,
   string pfxFilePassword
);

Parameters

filename
The path to the certificate file.
fileType
The certificate file type.
pfxFilePassword
The .PFX file password, or a null reference (Nothing in Visual Basic) if is not Pfx.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException is a null reference (Nothing in Visual Basic) or an empty string.
MailBeeIOException The specified file can not be opened or read.
MailBeeCertificateParsingException does not designate the certificate of the specified type.
MailBeeCertificateWin32Exception Win32 returned an error during processing the certificate data.
MailBeeLicenseException MailBee.NET Security Powerup not licensed.

See Also

Certificate Class | MailBee.Security Namespace | Certificate Constructor Overload List