ClientBuildManager.GenerateCode Method (String, String, IDictionary)

 
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.

Generates code from the contents of a file.

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

public string GenerateCode(
	string virtualPath,
	string virtualFileString,
	out IDictionary linePragmasTable
)

Parameters

virtualPath
Type: System.String

The virtual path to the file.

virtualFileString
Type: System.String

The contents of the file.

linePragmasTable
Type: System.Collections.IDictionary

When this method returns, contains a dictionary of line pragmas.

Return Value

Type: System.String

A String containing the generated code.

Exception Condition
ArgumentNullException

virtualPath is null.

.NET Framework
Available since 2.0
Return to top
Show: