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

Значение свойства

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.

Применяется к

См. также раздел