BaseTemplateParser.GetUserControlType メソッド
アセンブリ: System.Web (system.web.dll 内)

Dim virtualPath As String Dim returnValue As Type returnValue = Me.GetUserControlType(virtualPath)
- virtualPath
ユーザー コントロールの型。


PageParserFilter オブジェクトが定義され、その AllowVirtualReference プロパティが false である場合、GetUserControlType メソッドは HttpException 例外を生成します。
また、仮想パスによって参照されている UserControl オブジェクトがコンパイルなしとしてマークされている場合も、HttpException 例外がスローされます。UserControl をコンパイルするには、その @ Control ディレクティブ内のコンパイル モード属性を Always フィールドに設定する必要があります。1 つのアプリケーション内のページとコントロールのコンパイル モードを設定するには、Web.config ファイルの pages 要素 (ASP.NET 設定スキーマ) の compilationMode 属性を設定します。

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- BaseTemplateParser.GetUserControlType メソッドのページへのリンク