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

BuildManager.GetCompiledType Method

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

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

'Declaration
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.

ExceptionCondition
HttpException

An error occurred when compiling the virtual path.

ArgumentNullException

virtualPath is Nothing.

.NET Framework

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