共用方式為


IdentitySection.Password 屬性

定義

取得或設定一個數值,指示用於冒充的密碼。

public:
 property System::String ^ Password { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("password", DefaultValue="")]
public string Password { get; set; }
[<System.Configuration.ConfigurationProperty("password", DefaultValue="")>]
member this.Password : string with get, set
Public Property Password As String

屬性值

冒充用的密碼。

屬性

範例

以下程式碼範例說明如何存取該 Password 物業。 參考課程 IdentitySection 範例,了解如何存取該區段。

// Get the Password property value.
string currentPassword = identitySection.Password;

// Set the Password property value.
identitySection.Password = "userPassword";
' Get the Password property value.
Dim currentPassword As String = identitySection.Password

' Set the Password property value.
identitySection.Password = "userPassword"

備註

由於密碼是以明文儲存,擁有正確憑證的伺服器所在網域的認證使用者可以讀取密碼。

備註

出於安全考量,身份區塊支援儲存加密的 UserNamePassword

適用於