Saves the Certificate as an encoded file.

Namespace: LLCryptoLib.Security.Certificates
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public void ToCerFile(
	string filename
)
Visual Basic
Public Sub ToCerFile ( _
	filename As String _
)
Visual C++
public:
void ToCerFile(
	String^ filename
)

Parameters

filename
Type: System..::..String
The file where to store the certificate.

Remarks

If the specified file already exists, this method will throw an exception.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionfilename is a null reference (Nothing in Visual Basic).
System.IO..::..IOExceptionAn error occurs while writing the data.

See Also