VirtualDirectory.UserName Property

 

Gets or sets the user name 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 UserName { get; set; }

Property Value

Type: System.String

The user name 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.

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

Return to top
Show: