Share via


BaseTemplateParser.GetReferencedType(String) 方法

定義

編譯並傳回虛擬路徑所指定之 PageUserControl 控制項的型別。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

protected:
 Type ^ GetReferencedType(System::String ^ virtualPath);
protected Type GetReferencedType (string virtualPath);
member this.GetReferencedType : string -> Type
Protected Function GetReferencedType (virtualPath As String) As Type

參數

virtualPath
String

PageUserControl 的虛擬路徑。

傳回

頁面或使用者控制項的型別。

例外狀況

剖析器不允許 virtualPath 所指定之資源的虛擬參考。

備註

PageParserFilter如果已定義 物件,且其 AllowVirtualReference 屬性為 false ,則 GetUserControlType 方法會 HttpException 引發例外狀況。

方法是 GetUserControlType 方法的 GetReferencedType 包裝函式。

適用於

另請參閱