Share via


DataControlFieldDesigner.GetTemplate(DataBoundControl, String) 方法

定义

获取包含指定数据绑定控件的模板标记的 ITemplate 对象。

protected:
 System::Web::UI::ITemplate ^ GetTemplate(System::Web::UI::WebControls::DataBoundControl ^ control, System::String ^ templateContent);
protected System.Web.UI.ITemplate GetTemplate (System.Web.UI.WebControls.DataBoundControl control, string templateContent);
member this.GetTemplate : System.Web.UI.WebControls.DataBoundControl * string -> System.Web.UI.ITemplate
Protected Function GetTemplate (control As DataBoundControl, templateContent As String) As ITemplate

参数

control
DataBoundControl

数据绑定控件。

templateContent
String

模板标记。

返回

一个包含指定数据绑定控件的模板标记的对象。

适用于