Export (0) Print
Expand All

BuildProvider.VirtualPath Property

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

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

protected internal string VirtualPath { get; }

Property Value

Type: System.String
A read-only string that specifies the virtual path of a file to be compiled by this build provider.

The virtual path of a BuildProvider object is the path to the file that is being compiled by the build provider. For example, if you have configured a custom 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 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 BuildProvider object for each file based on the file type, and uses the 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).

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2015 Microsoft