BuildManager.GetGlobalAsaxType Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 static Type GetGlobalAsaxType()

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: