Redigera

Dela via


ControlBuilderInterceptor.PreControlBuilderInit Method

Definition

Called before the ControlBuilder of an element in the markup is initialized.

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)

Parameters

controlBuilder
ControlBuilder

The control builder which is about to be initialized.

parser
TemplateParser

The TemplateParser which was used to parse the markup.

parentBuilder
ControlBuilder

The parent control builder.

type
Type

The type of the control that this builder will create.

tagName
String

The name of the tag to be built.

id
String

The ID of the element in the markup.

attributes
IDictionary

The list of attributes of the element in the markup.

additionalState
IDictionary

The additional state which can be used to store and retrieve data within several methods of the ControlBuilderInterceptor class.

Remarks

The parentBuilder parameter is typically the builder corresponding to the parent element in the markup.

Applies to