HttpConfigurationContext.VirtualPath Property

 

Gets the virtual path to the Web.config configuration file.

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

public string VirtualPath { get; }

Property Value

Type: System.String

The virtual path to the Web.config file. Null when evaluating Machine.config; an empty string ("") when evaluating the root Web.config file for the site.

.NET Framework
Available since 1.1
Return to top
Show: