CspParameters.KeyPassword Property

Definition

Important

This API is not CLS-compliant.

Gets or sets a password associated with a smart card key.

C#
[System.CLSCompliant(false)]
public System.Security.SecureString? KeyPassword { get; set; }
C#
[System.CLSCompliant(false)]
public System.Security.SecureString KeyPassword { get; set; }
C#
public System.Security.SecureString KeyPassword { get; set; }

Property Value

A password associated with a smart card key.

Attributes

Remarks

Use the KeyPassword property to supply a password for a smart card key. When you specify a password using this property, a password dialog box will not be presented to the user.

Applies to

Производ Верзије
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1