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

定义

当进行 Web 请求时初始化模板生成器。Initializes the template builder when a Web request is made.

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

参数

parser
TemplateParser

负责分析控件的 TemplateParserThe TemplateParser responsible for parsing the control.

parentBuilder
ControlBuilder

负责生成控件的 ControlBuilderThe ControlBuilder responsible for building the control.

type
Type

分配给生成器将创建的控件的 TypeThe Type assigned to the control that the builder will create.

tagName
String

要生成的标记的名称。The name of the tag to build. 这允许生成器支持多个标记类型。This allows the builder to support multiple tag types.

ID
String

分配给控件的 IDThe ID assigned to the control.

attribs
IDictionary

保存所有指定标记特性的 IDictionaryThe IDictionary that holds all the specified tag attributes.

适用于

另请参阅