Share via


BuildManager.GetGlobalAsaxType 方法

定義

取得物件,此物件代表 Global.asax 檔案編譯後的型別。

public:
 static Type ^ GetGlobalAsaxType();
public static Type GetGlobalAsaxType ();
static member GetGlobalAsaxType : unit -> Type
Public Shared Function GetGlobalAsaxType () As Type

傳回

表示 Global.asax 檔案編譯後型別的物件。

例外狀況

已在編譯 Global.asax 頁面之前嘗試呼叫這個方法。

備註

如果在編譯 Global.asax 檔案之前呼叫這個方法,就會擲回例外狀況。

適用於