X509Store Constructor (String)


Initializes a new instance of the X509Store class using the specified store name.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

new : 
        storeName:string -> X509Store


Type: System.String

A string value that represents the store name. See StoreName for more information.

Use this constructor to create an X509Store object using a particular X.509 store name for the current user. To create a new store, specify a name that does not exist. A new store will be created with that name.

The following code example opens an X.509 certificate store, adds and deletes certificates, and then closes the store. It assumes that you have three certificates to add to and remove from a local store.

No code example is currently available or this language may not be supported.


for opening an X.509 certificate store. Security action: Demand. Associated enumerations: StorePermissionFlags.OpenStore, StorePermissionFlags.EnumerateCertificates

.NET Framework
Available since 2.0
Return to top