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"
備註
因為密碼會以純文字儲存,所以伺服器所在網域上具有適當認證的已驗證使用者可以讀取密碼。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應