Compartilhar via


TemplatedControlDesigner.SetTemplateContent Método

Definição

Cuidado

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

Quando substituído em uma classe derivada, define o conteúdo do modelo especificado para o conteúdo especificado.

public:
 abstract void SetTemplateContent(System::Web::UI::Design::ITemplateEditingFrame ^ editingFrame, System::String ^ templateName, System::String ^ templateContent);
public abstract void SetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, string templateContent);
[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 void SetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, string templateContent);
abstract member SetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * string -> unit
[<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 SetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * string -> unit
Public MustOverride Sub SetTemplateContent (editingFrame As ITemplateEditingFrame, templateName As String, templateContent As String)

Parâmetros

editingFrame
ITemplateEditingFrame

O quadro de edição de modelo que deve receber conteúdo.

templateName
String

O nome do modelo.

templateContent
String

O conteúdo a ser definido para o modelo.

Atributos

Aplica-se a

Confira também