ControlBuilder.CreateBuilderFromType Method

Definition

Creates a ControlBuilder object from the specified tag name and object type, as well as other parameters defining the builder.

C#
public static System.Web.UI.ControlBuilder CreateBuilderFromType(System.Web.UI.TemplateParser parser, System.Web.UI.ControlBuilder parentBuilder, Type type, string tagName, string id, System.Collections.IDictionary attribs, int line, string sourceFileName);

Parameters

parser
TemplateParser

The TemplateParser object responsible for parsing the control.

parentBuilder
ControlBuilder

The ControlBuilder object responsible for building the parent control.

type
Type

The Type of the object 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

The ID attribute assigned to the control.

attribs
IDictionary

The IDictionary object that holds all the specified tag attributes.

line
Int32

The source file line number for the specified control.

sourceFileName
String

The name of the source file from which the control is to be created.

Returns

The builder that is responsible for creating the control.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1