共用方式為


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

適用於

另請參閱