Partage via


ProcessModelSection.Password Propriété

Définition

Obtient ou définit une valeur indiquant le mot de passe à utiliser pour l'identité 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

Valeur de propriété

Mot de passe à utiliser. La valeur par défaut est AutoGenerate.

Attributs

Exemples

L'exemple de code suivant illustre l'accès à la propriété 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"

Remarques

La Password propriété doit être utilisée avec la UserName propriété .

Lorsqu’elles sont présentes, ces valeurs de propriété entraînent l’exécution du processus worker avec l’identité Windows configurée.

S’applique à

Voir aussi