OpenFlags Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

[FlagsAttribute]
public enum OpenFlags

Member nameDescription
ReadOnlyOpen the X.509 certificate store for reading only.
ReadWriteOpen the X.509 certificate store for both reading and writing.
MaxAllowedOpen the X.509 certificate store for the highest access allowed.
OpenExistingOnlyOpens only existing stores; if no store exists, the Open method will not create a new store.
IncludeArchivedOpen the X.509 certificate store and include archived certificates.

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

Show: