System.Security.Cryptography.X509Certificates.X509Store.Open Method

Opens an X.509 certificate store or creates a new store, depending on System.Security.Cryptography.X509Certificates.OpenFlags flag settings.

Syntax

public void Open (OpenFlags flags)

Parameters

flags
A bitwise combination of enumeration values that specifies the way to open the X.509 certificate store.

Remarks

Use this method to open an existing X.509 store. Note that you must have additional permissions, specified by System.Security.Permissions.StorePermissionFlags, to enumerate the certificates in the store. You can create a new store by passing a store name that does not exist to the class constructor, and then using any of the System.Security.Cryptography.X509Certificates.OpenFlags flags except OpenFlags.OpenExistingOnly.

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0