Import Method

Store.Import method

[The Import method 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 Import method copies into an open certificate store the contents of a previously exported certificate store. This method can only be used with a store that has been opened with read/write permission.


Store.Import( _
  ByVal EncodedStore _


EncodedStore [in]

The string that contains the encoded certificates to be imported.

Return value

This method does not return a value.


Important  When this method is called from a web script, the script needs to access digital certificates on the local computer. If you allow the script to access your digital certificates, the website from which the script is run will also gain access to any personal information stored in the certificates. The first time this method is called from a particular domain, a dialog box is generated in which the user must indicate whether access to the certificates should be allowed.

If the store is not opened with read/write permission, this method fails. Although this method can be used with memory stores, any changes made to a memory store are not persisted when the store is closed.



CAPICOM 2.0 or later on Windows Server 2003 and Windows XP



See also

Cryptography Objects



Community Additions

© 2015 Microsoft