Saves the CertificateStore in a 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,
	CertificateStoreType type
)
Visual Basic
Public Sub ToCerFile ( _
	filename As String, _
	type As CertificateStoreType _
)
Visual C++
public:
void ToCerFile(
	String^ filename, 
	CertificateStoreType type
)

Parameters

filename
Type: System..::..String
The filename of the serialized store.
type
Type: LLCryptoLib.Security.Certificates..::..CertificateStoreType
One of the CertificateStoreType values.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionfilename is a null reference (Nothing in Visual Basic).
LLCryptoLib.Security.Certificates..::..CertificateExceptionAn error occurs while saving the store to the memory buffer.
System.IO..::..IOExceptionAn error occurs while writing the data.

See Also