TemplatedControlDesigner.GetTemplateContent Méthode

Définition

Attention

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

En cas de substitution dans une classe dérivée, obtient le contenu du modèle.

public:
 abstract System::String ^ GetTemplateContent(System::Web::UI::Design::ITemplateEditingFrame ^ editingFrame, System::String ^ templateName, [Runtime::InteropServices::Out] bool % allowEditing);
public abstract 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 abstract string GetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, out bool allowEditing);
abstract member 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")>]
abstract member GetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * bool -> string
Public MustOverride Function GetTemplateContent (editingFrame As ITemplateEditingFrame, templateName As String, ByRef allowEditing As Boolean) As String

Paramètres

editingFrame
ITemplateEditingFrame

Frame de modification de modèle dont le contenu doit être récupéré.

templateName
String

Nom du modèle.

allowEditing
Boolean

true si le contenu du modèle peut être modifié ; false si le contenu est en lecture seule.

Retours

Contenu du modèle.

Attributs

S’applique à

Voir aussi