ControlBuilderInterceptor.PreControlBuilderInit 方法

定义

在初始化标记中的元素的 ControlBuilder 前调用。

public:
 virtual void PreControlBuilderInit(System::Web::UI::ControlBuilder ^ controlBuilder, System::Web::UI::TemplateParser ^ parser, System::Web::UI::ControlBuilder ^ parentBuilder, Type ^ type, System::String ^ tagName, System::String ^ id, System::Collections::IDictionary ^ attributes, System::Collections::IDictionary ^ additionalState);
public virtual void PreControlBuilderInit (System.Web.UI.ControlBuilder controlBuilder, System.Web.UI.TemplateParser parser, System.Web.UI.ControlBuilder parentBuilder, Type type, string tagName, string id, System.Collections.IDictionary attributes, System.Collections.IDictionary additionalState);
abstract member PreControlBuilderInit : System.Web.UI.ControlBuilder * System.Web.UI.TemplateParser * System.Web.UI.ControlBuilder * Type * string * string * System.Collections.IDictionary * System.Collections.IDictionary -> unit
override this.PreControlBuilderInit : System.Web.UI.ControlBuilder * System.Web.UI.TemplateParser * System.Web.UI.ControlBuilder * Type * string * string * System.Collections.IDictionary * System.Collections.IDictionary -> unit
Public Overridable Sub PreControlBuilderInit (controlBuilder As ControlBuilder, parser As TemplateParser, parentBuilder As ControlBuilder, type As Type, tagName As String, id As String, attributes As IDictionary, additionalState As IDictionary)

参数

controlBuilder
ControlBuilder

即将初始化的控件生成器。

parser
TemplateParser

用于分析标记的 TemplateParser

parentBuilder
ControlBuilder

父控件生成器。

type
Type

此生成器将创建的控件类型。

tagName
String

要生成的标记的名称。

id
String

标记中元素的 ID。

attributes
IDictionary

标记中元素的属性列表。

additionalState
IDictionary

可用于在 类的 ControlBuilderInterceptor 多个方法中存储和检索数据的其他状态。

注解

参数 parentBuilder 通常是与标记中的父元素对应的生成器。

适用于