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 Function GenerateCode (
	virtualPath As String,
	virtualFileString As String,
	<OutAttribute> ByRef linePragmasTable As IDictionary
) As String

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: