DataListDesigner.GetTemplateContent Methode

Definition

Achtung

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

Ruft den Inhalt der Vorlage ab.

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

Parameter

editingFrame
ITemplateEditingFrame

Die ITemplateEditingFrame-Instanz, aus der der Inhalt abrufen werden soll.

templateName
String

Der Name der Vorlage.

allowEditing
Boolean

true, wenn der Inhalt der Vorlage bearbeitet werden kann. false, wenn der Inhalt schreibgeschützt ist.

Gibt zurück

Der Inhalt der Vorlage.

Attribute

Hinweise

Anstatt Bearbeitungsframes zu verwenden, verwenden Sie Vorlagengruppen und Designerbearbeitungsregionen. Weitere Informationen finden Sie unter TemplateGroups und DesignerRegion.

Gilt für:

Weitere Informationen