BuildManager.GetCompiledType Method (String)

 

Compiles a file, given its virtual path, and returns the compiled type.

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

Public Shared Function GetCompiledType (
	virtualPath As String
) As Type

Parameters

virtualPath
Type: System.String

The virtual path to build into a type.

Return Value

Type: System.Type

A Type object that represents the type generated from compiling the virtual path.

Exception Condition
HttpException

An error occurred when compiling the virtual path.

ArgumentNullException

virtualPath is null.

.NET Framework
Available since 2.0
Return to top
Show: