Saves the CertificateStore in a file.
Namespace: LLCryptoLib.Security.CertificatesAssembly: 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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | filename is a null reference (Nothing in Visual Basic). |
| LLCryptoLib.Security.Certificates..::..CertificateException | An error occurs while saving the store to the memory buffer. |
| System.IO..::..IOException | An error occurs while writing the data. |