共用方式為


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

範本標記。

傳回

物件,該物件包含指定之資料繫結控制項的範本標記。

適用於