ControlBuilder.CreateBuilderFromType(TemplateParser, ControlBuilder, Type, String, String, IDictionary, Int32, String) 方法
定义
根据指定的标记名称和对象类型,以及定义生成器的其他参数创建一个 ControlBuilder 对象。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
参数
- parser
- TemplateParser
负责分析控件的 TemplateParser 对象。The TemplateParser object responsible for parsing the control.
- parentBuilder
- ControlBuilder
负责生成父控件的 ControlBuilder 对象。The ControlBuilder object responsible for building the parent control.
- tagName
- String
要生成的标记的名称。The name of the tag to be built. 这允许生成器支持多个标记类型。This allows the builder to support multiple tag types.
- attribs
- IDictionary
保存所有指定标记特性的 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.
返回
负责创建控件的生成器。The builder that is responsible for creating the control.