CngKeyCreationParameters.UIPolicy Property

 
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.

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 {
	get;
	[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
	[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeSubWindows)]
	set;
}

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.

UIPermission

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

.NET Framework
Available since 3.5
Return to top
Show: