BuildManager.GetCompiledType(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據其虛擬路徑編譯檔案,並回傳編譯後的型別。
public:
static Type ^ GetCompiledType(System::String ^ virtualPath);
public static Type GetCompiledType(string virtualPath);
static member GetCompiledType : string -> Type
Public Shared Function GetCompiledType (virtualPath As String) As Type
參數
- virtualPath
- String
虛擬路徑,建立成一種類型的方式。
傳回
一個 Type 代表由編譯虛擬路徑所產生型態的物件。
例外狀況
在編譯虛擬路徑時發生錯誤。
virtualPath 是 null。