CspParameters.KeyPassword 属性

定义

重要

此 API 不符合 CLS。

获取或设置与智能卡密钥相关的密码。Gets or sets a password associated with a smart card key.

public:
 property System::Security::SecureString ^ KeyPassword { System::Security::SecureString ^ get(); void set(System::Security::SecureString ^ value); };
public System.Security.SecureString KeyPassword { get; set; }
[System.CLSCompliant(false)]
public System.Security.SecureString KeyPassword { get; set; }
member this.KeyPassword : System.Security.SecureString with get, set
[<System.CLSCompliant(false)>]
member this.KeyPassword : System.Security.SecureString with get, set
Public Property KeyPassword As SecureString

属性值

SecureString

与智能卡密钥相关的密码。A password associated with a smart card key.

属性

注解

使用 KeyPassword 属性提供智能卡密钥的密码。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.

适用于