CspParameters.ParentWindowHandle 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 a handle to the unmanaged parent window for a smart card password dialog box.

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

public IntPtr ParentWindowHandle { get; set; }

Property Value

Type: System.IntPtr

A handle to the parent window for a smart card password dialog box.

Use the ParentWindowHandle property to specify a handle to the unmanaged parent window for a smart card password dialog box. When you specify a handle using this property, a smart card password dialog box will be presented to the user.

You can avoid presenting a smart card password dialog box by explicitly specifying a password by using the KeyPassword property.

.NET Framework
Available since 2.0
Return to top
Show: