IdentitySection.Password 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個數值,指示用於冒充的密碼。
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"
備註
由於密碼是以明文儲存,擁有正確憑證的伺服器所在網域的認證使用者可以讀取密碼。