ProcessModelSection.Password Property

 

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

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("password", DefaultValue = "AutoGenerate")]
public string Password { get; set; }

Property Value

Type: System.String

The password to use. The default value is AutoGenerate.

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.

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

.NET Framework
Available since 2.0
Return to top
Show: