共用方式為


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 通常是對應至標記中父元素的產生器。

適用於