CngKeyCreationParameters.UIPolicy Property


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

Gets or sets information about the user interface to display when a key is created or accessed.

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

public CngUIPolicy UIPolicy {
	[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
	[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeSubWindows)]

Property Value

Type: System.Security.Cryptography.CngUIPolicy

An object that contains details about the user interface shown by Cryptography Next Generation (CNG) classes when a key is created or accessed. A null value indicates that the key storage provider's default user interface policy is set.


for operating with unmanaged code. Demand value: LinkDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode

.NET Framework
Available since 3.5
Return to top