ClientBuildManager.CompileFile Method (String, ClientBuildManagerCallback)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Compiles the file represented by the virtual path and provides a callback class to receive status information about the build.

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

public void CompileFile(
	string virtualPath,
	ClientBuildManagerCallback callback
)

Parameters

virtualPath
Type: System.String

The path to the file to be compiled.

callback
Type: System.Web.Compilation.ClientBuildManagerCallback

The object to receive status information from compilation.

Exception Condition
ArgumentNullException

virtualPath is null.

.NET Framework
Available since 2.0
Return to top
Show: