System.Security.Cryptography.X509Certificates.OpenFlags Enumeration

Specifies the way to open the X.509 certificate store.

Syntax

[System.Flags]
public enum OpenFlags

Remarks

The OpenFlags.ReadOnly, OpenFlags.ReadWrite, and OpenFlags.MaxAllowed flags are mutually exclusive. The OpenFlags.OpenExistingOnly flag is the only flag that does not require the System.Security.Permissions.StorePermissionFlags.CreateStore permission to be granted.

Members

Member NameDescription
IncludeArchived

Open the X.509 certificate store and include archived certificates.

MaxAllowed

Open the X.509 certificate store for the highest access allowed.

OpenExistingOnly

Opens only existing stores; if no store exists, the X509Store.Open(OpenFlags) method will not create a new store.

ReadOnly

Open the X.509 certificate store for reading only.

ReadWrite

Open the X.509 certificate store for both reading and writing.

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