次の方法で共有


ControlParser.ParseTemplate メソッド (IDesignerHost, String, String)

指定した永続化テンプレート コードを解析して ITemplate を作成します。

Overloads Public Shared Function ParseTemplate( _
   ByVal designerHost As IDesignerHost, _   ByVal templateText As String, _   ByVal directives As String _) As ITemplate
[C#]
public static ITemplate ParseTemplate(IDesignerHostdesignerHost,stringtemplateText,stringdirectives);
[C++]
public: static ITemplate* ParseTemplate(IDesignerHost* designerHost,String* templateText,String* directives);
[JScript]
public static function ParseTemplate(
   designerHost : IDesignerHost,templateText : String,directives : String) : ITemplate;

パラメータ

  • designerHost
    ドキュメントのデザイナ ホストである IDesignerHost
  • templateText
    永続化したテンプレートを表す文字列。
  • directives
    テンプレートのコードの先頭に追加されるディレクティブ。

戻り値

指定した永続化テンプレート コードを解析して作成された ITemplate

解説

このメソッドは、デザイナ ホストをとおして取得した IWebFormReferenceManager サービスを使用して、Web フォーム ドキュメントのレジスタ ディレクティブを表す文字列にアクセスします。

必要条件

プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

ControlParser クラス | ControlParser メンバ | System.Web.UI.Design 名前空間 | ControlParser.ParseTemplate オーバーロードの一覧