ClientBuildManager::GenerateCode Method (String^, String^, IDictionary^%)

 

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,
	[OutAttribute] 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: