Freigeben über


ProcessModelSection.Password Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der das Kennwort angibt, das für die Windows-Identität verwendet werden soll.

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

Eigenschaftswert

Das zu verwendende Kennwort. Der Standardwert ist AutoGenerate.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie Sie auf die Password Eigenschaft zugreifen.


// 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"

Hinweise

Die Password Eigenschaft muss mit der UserName Eigenschaft verwendet werden.

Wenn vorhanden, führen diese Eigenschaftswerte dazu, dass der Arbeitsprozess mit der konfigurierten Windows-Identität ausgeführt wird.

Gilt für:

Weitere Informationen