Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CngKeyCreationParameters::ParentWindowHandle Property

 

Gets or sets the window handle that should be used as the parent window for dialog boxes that are created by Cryptography Next Generation (CNG) classes.

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

public:
property IntPtr ParentWindowHandle {
	IntPtr get();
	[SecurityPermissionAttribute(SecurityAction::Demand, UnmanagedCode = true)]
	void set(IntPtr value);
}

Property Value

Type: System::IntPtr

The HWND of the parent window that is used for CNG dialog boxes.

This property should be set if key creation causes CNG to show a dialog box.

SecurityPermission

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

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft