System.Web.Compilation.BuildProvider.VirtualPath Property

Represents the file to be built by this build provider implementation.

Syntax

protected string VirtualPath { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The virtual path of a System.Web.Compilation.BuildProvider object is the path to the file that is being compiled by the build provider. For example, if you have configured a custom System.Web.Compilation.BuildProvider class to build all files in the Web site with the custom extension of .abc, if your Web site is named WebSite1, and the Web site contains a file named Example.abc, the BuildProvider.VirtualPath property contains the value /WebSite1/Example.abc.

The file extension of each file within the application determines the file type, and the corresponding build provider for the file type. The ASP.NET build environment initializes a System.Web.Compilation.BuildProvider object for each file based on the file type, and uses the System.Web.Compilation.BuildProvider methods to generate source for each file.

For more information about configuring a build provider, see buildproviders Element for compilation (ASP.NET Settings Schema).

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0