ControlBuilder.Init(TemplateParser, ControlBuilder, Type, String, String, IDictionary) 方法

定义

实例化 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

参数

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.

注解

此方法由 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.

适用于