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.
Members
The Store object has these types of members:
Methods
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 2.0.0.3 and earlier: The Close method is not supported. |
Delete | Deletes the certificate store represented by the current Store object. CAPICOM 2.0.0.3 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. |
Properties
The Store object has these properties.
Property | Access type | Description |
---|---|---|
Certificates |
Read-only |
Retrieves the Certificates collection of the store. This is the default property. |
Location |
Read-only |
Retrieves the location of the certificate store that this object represents. CAPICOM 2.0.0.3 and earlier: The Location property is not supported. |
Name |
Read-only |
Retrieves the name of the certificate store that this object represents. CAPICOM 2.0.0.3 and earlier: The Name property is not supported. |
Remarks
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.
Requirements
Requirement | Value |
---|---|
Redistributable |
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP |
DLL |
|
See also