ProcessModelSection.Password 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
它會取得或設定一個值,指示用於 Windows 身份的密碼。
public:
property System::String ^ Password { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("password", DefaultValue="AutoGenerate")]
public string Password { get; set; }
[<System.Configuration.ConfigurationProperty("password", DefaultValue="AutoGenerate")>]
member this.Password : string with get, set
Public Property Password As String
屬性值
密碼。 預設值為自動生成。
- 屬性
範例
以下程式碼範例說明如何存取該 Password 物業。
// Get the current Password property value.
string password =
processModelSection.Password;
// Set the Password property to "CUPassword".
processModelSection.Password = "CUPassword";
' Get the current Password property value.
Dim password As String = _
processModelSection.Password
' Set the Password property to "CUPassword".
processModelSection.Password = "CUPassword"
備註
Password該財產必須與該物業一同UserName使用。
當這些屬性值存在時,會使工作程序以已設定的 Windows 身份執行。