共用方式為


TemplateBuilder.Init 方法

定義

當提出 Web 要求時,初始化樣板產生器。

public:
 override void Init(System::Web::UI::TemplateParser ^ parser, System::Web::UI::ControlBuilder ^ parentBuilder, Type ^ type, System::String ^ tagName, System::String ^ ID, System::Collections::IDictionary ^ attribs);
public override void Init (System.Web.UI.TemplateParser parser, System.Web.UI.ControlBuilder parentBuilder, Type type, string tagName, string ID, System.Collections.IDictionary attribs);
override this.Init : System.Web.UI.TemplateParser * System.Web.UI.ControlBuilder * Type * string * string * System.Collections.IDictionary -> unit
Public Overrides Sub Init (parser As TemplateParser, parentBuilder As ControlBuilder, type As Type, tagName As String, ID As String, attribs As IDictionary)

參數

parser
TemplateParser

負責剖析控制項的 TemplateParser

parentBuilder
ControlBuilder

負責建置控制項的 ControlBuilder

type
Type

指派給產生器所建立控制項的 Type

tagName
String

要建置的標記名稱。 這讓產生器能夠支援多個標記類型。

ID
String

指定給控制項的 ID

attribs
IDictionary

包含所有指定之標記屬性的 IDictionary

適用於

另請參閱