DataListDesigner.GetTemplateContent メソッド

定義

注意事項

Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202

テンプレートの内容を取得します。

public:
 override System::String ^ GetTemplateContent(System::Web::UI::Design::ITemplateEditingFrame ^ editingFrame, System::String ^ templateName, [Runtime::InteropServices::Out] bool % allowEditing);
public override string GetTemplateContent(System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, out bool allowEditing);
[System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public override string GetTemplateContent(System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, out bool allowEditing);
override this.GetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * bool -> string
[<System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")>]
override this.GetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * bool -> string
Public Overrides Function GetTemplateContent (editingFrame As ITemplateEditingFrame, templateName As String, ByRef allowEditing As Boolean) As String

パラメーター

editingFrame
ITemplateEditingFrame

コンテンツの取得元となる ITemplateEditingFrame インスタンス。

templateName
String

テンプレートの名前。

allowEditing
Boolean

true テンプレートのコンテンツを編集できる場合。コンテンツが読み取り専用の場合に false します。

返品

テンプレートの内容。

属性

注釈

編集フレームを使用するのではなく、テンプレート グループとデザイナー編集領域を使用します。 詳細については、「TemplateGroupsDesignerRegion」を参照してください。

適用対象

こちらもご覧ください