Bearbeiten

ProcessModelSection.Password Property

Definition

Gets or sets a value indicating the password to use for the Windows identity.

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

Property Value

The password to use. The default value is AutoGenerate.

Attributes

Examples

The following code example shows how to access the Password property.


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

Remarks

The Password property must be used with the UserName property.

When present, these property values cause the worker process to run with the configured Windows identity.

Applies to

See also