Export (0) Print
Expand All
Expand Minimize

CngKeyOpenOptions Enumeration

Specifies options for opening a key.

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

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

public enum CngKeyOpenOptions

Member nameDescription
MachineKeyA machine-wide key is opened.
NoneNo key open options are specified.
SilentUI prompting is suppressed.
UserKeyIf the MachineKey value is not specified, a user key is opened instead.

The Silent option suppresses any UI prompting. This option may not work with some key types, such as smart card keys and keys that are stored in the software key storage provider (KSP). These key types are protected with mandatory UI prompting.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft