Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ClientBuildManager.CompileFile Method (String, ClientBuildManagerCallback)

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.

ExceptionCondition
ArgumentNullException

virtualPath is null.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft