Password Property
Collapse the table of content
Expand the table of content

VirtualDirectory.Password Property

 

Gets or sets the password that the virtual directory uses to access its configured physical location.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public string Password { get; set; }

Property Value

Type: System.String

The clear-text password that the virtual directory uses to access its physical location.

You should use this property when the virtual directory requires alternative credentials to access secured content, such as a UNC path. When you set the password for a virtual directory, the value stored in the configuration system is encrypted.

System_CAPS_cautionCaution

The value returned from the get accessor of this property is clear text. Use care when you display this value in an unsecured environment.

The following example demonstrates how to set the Password property of a virtual directory.

Return to top
Show:
© 2016 Microsoft