通过


ProcessModelSection.Password 属性

定义

获取或设置一个值,该值指示用于 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

属性值

要使用的密码。 默认值为 AutoGenerate。

属性

示例

下面的代码示例演示如何访问 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 标识运行。

适用于

另请参阅