Control.TemplateControl Control.TemplateControl Control.TemplateControl Control.TemplateControl Property

定义

获取或设置对包含该控件的模板的引用。Gets or sets a reference to the template that contains this control.

public:
 property System::Web::UI::TemplateControl ^ TemplateControl { System::Web::UI::TemplateControl ^ get(); void set(System::Web::UI::TemplateControl ^ value); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.TemplateControl TemplateControl { get; set; }
member this.TemplateControl : System.Web.UI.TemplateControl with get, set
Public Property TemplateControl As TemplateControl

属性值

包含该控件的 TemplateControl 实例。The TemplateControl instance that contains this control.

注解

当实例是控件模板的一部分时TemplateControl ,属性包含对包含控件的引用。 ControlWhen a Control instance is part of a control template, the TemplateControl property contains a reference to the containing control. 有关详细信息,请参阅System.Web.UI.TemplateControl文档。For more information, see the System.Web.UI.TemplateControl documentation.

适用于