Mentalis.org Security Library documentation

CertificateStore.ToCerFile Method 

Saves the CertificateStore in a file.

[Visual Basic]
Public Sub ToCerFile( _
   ByVal filename As String, _
   ByVal type As CertificateStoreType _
)
[C#]
public void ToCerFile(
   string filename,
   CertificateStoreType type
);

Parameters

filename
The filename of the serialized store.
type
One of the CertificateStoreType values.

Exceptions

Exception TypeCondition
ArgumentNullExceptionfilename is a null reference (Nothing in Visual Basic).
CertificateExceptionAn error occurs while saving the store to the memory buffer.
IOExceptionAn error occurs while writing the data.

See Also

CertificateStore Class | CertificateStore Members | Org.Mentalis.Security.Certificates Namespace