Bewerken

Share via


ControlBuilder.CreateBuilderFromType Method

Definition

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

public:
 static System::Web::UI::ControlBuilder ^ CreateBuilderFromType(System::Web::UI::TemplateParser ^ parser, System::Web::UI::ControlBuilder ^ parentBuilder, Type ^ type, System::String ^ tagName, System::String ^ id, System::Collections::IDictionary ^ attribs, int line, System::String ^ sourceFileName);
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);
static member CreateBuilderFromType : System.Web.UI.TemplateParser * System.Web.UI.ControlBuilder * Type * string * string * System.Collections.IDictionary * int * string -> System.Web.UI.ControlBuilder
Public Shared Function CreateBuilderFromType (parser As TemplateParser, parentBuilder As ControlBuilder, type As Type, tagName As String, id As String, attribs As IDictionary, line As Integer, sourceFileName As String) As ControlBuilder

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