Share via


ProcessModelSection.Password Eigenschaft

Definition

Ruft einen Wert ab, der das für die Windows-Identität zu verwendende Kennwort angibt, oder legt diesen fest.

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

String

Das zu verwendende Kennwort. Der Standardwert ist AutoGenerate.

Attribute

Beispiele

Im folgenden Codebeispiel wird der Zugriff auf die Password-Eigenschaft veranschaulicht.


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

Diese Eigenschaftswerte führen dazu, dass der Arbeitsprozess mit der konfigurierten Windows Identität ausgeführt wird.

Gilt für

Siehe auch