Store object

[The Store object is available for use in the operating systems specified in the Requirements section. Instead, use the X509Store Class in the System.Security.Cryptography.X509Certificates namespace.]

The Store object provides properties and methods that you can use to choose, manage, and use certificate stores and the certificates in those stores. CAPICOM can use Current-User, Local-Machine, memory, and Active Directory stores. Also, stores support smart card–based certificate stores. Developers should be aware that some methods may fail with some stores if operations are attempted for which the user does not have rights.


The Store object has these types of members:


The Store object has these methods.

Method Description
Add Adds a Certificate object to the open certificate store.
Close Closes an open certificate store.
CAPICOM and earlier: The Close method is not supported.
Delete Deletes the certificate store represented by the current Store object.
CAPICOM and earlier: The Delete method is not supported.
Export Exports the store of an encoded BLOB.
Import Imports a previously exported store.
Load Imports Certificate objects from a file into the store.
Open Opens a certificate store.
Remove Removes a Certificate object from an open store.



The Store object has these properties.

Property Access type Description
Retrieves the Certificates collection of the store. This is the default property.
Retrieves the location of the certificate store that this object represents.
CAPICOM and earlier: The Location property is not supported.
Retrieves the name of the certificate store that this object represents.
CAPICOM and earlier: The Name property is not supported.



The Store object can be created, and it is safe for scripting. The ProgID for the Store object is CAPICOM.Store.2.

CAPICOM 1.x: The ProgID for the Store object is CAPICOM.Store.1.


Requirement Value
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP

See also

Cryptography Objects