BuildManager.GetGlobalAsaxType Method ()

.NET Framework (current version)
 

Gets an object that represents the compiled type for the Global.asax file.

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

Public Shared Function GetGlobalAsaxType As Type

Return Value

Type: System.Type

An object that represents the compiled type for the Global.asax file.

Exception Condition
InvalidOperationException

An attempt was made to call this method before the Global.asax page was compiled.

An exception is thrown if this method is called before the Global.asax file has been compiled.

.NET Framework
Available since 4.0
Return to top
Show: