CertificateStore Constructor (Byte, CertStoreType, CryptoServiceProvider)
Opens an existing store of certificates from a memory footprint of a PKCS #7 (.P7B) or Serialized Certificate Storage (.SST) file.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public CertificateStore(
	byte[] storeData,
	CertStoreType storeType,
	CryptoServiceProvider csp
)

Parameters

storeData
Type: SystemByte
A byte array containing the memory footprint of a PKCS #7 or serialized file.
storeType
Type: MailBee.SecurityCertStoreType
Pkcs7Bytes or SerializedBytes.
csp
Type: MailBee.SecurityCryptoServiceProvider
A reference to CryptoServiceProvider instance descripting Cryptographic service provider (CSP) to be used for the given store, or a null reference (Nothing in Visual Basic) if the default CSP should be used.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionstoreData is a null reference (Nothing in Visual Basic).
MailBeeCertificateStoreWin32ExceptionWin32 returned an error during opening the certificate store.
Remarks
To open a .PFX (.P12, PKCS #12) file, use CertificateStore(Byte, String) overload.
Note Note
In .NET Standard 2.0 edition and later, this constructor is no longer available (it's Win32-specific). Use CertificateStore(X509Store) instead.
See Also