|CertificateStore Constructor (String, CertStoreType, String, CryptoServiceProvider, RegistryStoreLocation)|
public CertificateStore( string storeName, CertStoreType storeType, string pfxPassword, CryptoServiceProvider csp, RegistryStoreLocation registryLocation )
Public Sub New ( storeName As String, storeType As CertStoreType, pfxPassword As String, csp As CryptoServiceProvider, registryLocation As RegistryStoreLocation )
|MailBeeInvalidArgumentException||storeName is a null reference (Nothing in Visual Basic) or an empty string while storeType is neither Memory nor PfxBytes.|
|MailBeeIOException||The specified PFX file can not be opened or read.|
|MailBeeCertificateStoreWin32Exception||Win32 returned an error during opening the certificate store.|
Only Memory stores can be created. Other stores can only be opened. It's possible, however, to create a memory store and then save it into a file using SaveToFile(String, CertStoreFileType, String) method. To create a new system store, use RegisterSystemStore(String, RegistryStoreLocation) method.
If you open a file store and then modify its contents, it won't be updated on disk until you save it back to the file. A system store, however, gets updated immediately in its registry location each time you call any method which modifies this store.