CngKeyOpenOptions Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

[FlagsAttribute]
public enum CngKeyOpenOptions

Member nameDescription
MachineKey

A machine-wide key is opened.

None

No key open options are specified.

Silent

UI prompting is suppressed.

UserKey

If 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
Available since 3.5
Return to top
Show: