ControlBuilder.Init(TemplateParser, ControlBuilder, Type, String, String, IDictionary) Method

Definition

初始化 ControlBuilder,以便當它執行個體化之後,可供使用。Initializes the ControlBuilder for use after it is instantiated. 此方法由 ASP.NET 網頁架構呼叫。This method is called by the ASP.NET page framework.

public:
 virtual 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 virtual void Init (System.Web.UI.TemplateParser parser, System.Web.UI.ControlBuilder parentBuilder, Type type, string tagName, string id, System.Collections.IDictionary attribs);
abstract member Init : System.Web.UI.TemplateParser * System.Web.UI.ControlBuilder * Type * string * string * System.Collections.IDictionary -> unit
override this.Init : System.Web.UI.TemplateParser * System.Web.UI.ControlBuilder * Type * string * string * System.Collections.IDictionary -> unit
Public Overridable Sub Init (parser As TemplateParser, parentBuilder As ControlBuilder, type As Type, tagName As String, id As String, attribs As IDictionary)

Parameters

parser
TemplateParser

負責剖析控制項的 TemplateParser 物件。The TemplateParser object responsible for parsing the control.

parentBuilder
ControlBuilder

負責建置父控制項的 ControlBuilder 物件。The ControlBuilder object responsible for building the parent control.

type
Type

指派給產生器所建立控制項的 TypeThe Type assigned to the control that the builder will create.

tagName
String

要建置的標記的名稱。The name of the tag to be built. 這讓產生器能夠支援多個標記類型。This allows the builder to support multiple tag types.

id
String

指派給控制項的 ID 屬性。The ID attribute assigned to the control.

attribs
IDictionary

包含所有指定標記屬性的 IDictionary 物件。The IDictionary object that holds all the specified tag attributes.

Remarks

在剖析期間,ASP.NET 網頁架構會呼叫這個方法,而不是直接在您的程式碼中呼叫。This method is called by the ASP.NET page framework during parsing and is not intended to be called directly in you code.

Applies to