UserControlControlBuilder Class

Definition

支持 ASP.NET 页分析器生成用户控件的实例。Supports the ASP.NET page parser in building an instance of a user control.

public ref class UserControlControlBuilder : System::Web::UI::ControlBuilder
public class UserControlControlBuilder : System.Web.UI.ControlBuilder
type UserControlControlBuilder = class
    inherit ControlBuilder
Public Class UserControlControlBuilder
Inherits ControlBuilder
Inheritance
UserControlControlBuilder
Derived

Remarks

默认情况下,页面上的每个用户控件都与默认UserControlControlBuilder类相关联。By default, every user control on a page is associated with a default UserControlControlBuilder class. 页面开发人员不会直接UserControlControlBuilder使用该类。Page developers do not use the UserControlControlBuilder class directly. 用户控件作者可以通过扩展此类来创建自定义用户控件生成器功能。User control authors might create custom user control builder functionality by extending this class.

Constructors

UserControlControlBuilder()

初始化 UserControlControlBuilder 类的新实例。Initializes a new instance of the UserControlControlBuilder class.

Properties

BindingContainerBuilder

获取与此生成器创建的控件的绑定容器对应的控件生成器。Gets the control builder that corresponds to the binding container for the control that this builder creates.

(Inherited from ControlBuilder)
BindingContainerType

获取此生成器所创建控件的绑定容器的类型。Gets the type of the binding container for the control that this builder creates.

(Inherited from ControlBuilder)
ComplexPropertyEntries

获取复杂属性项的集合。Gets a collection of complex property entries.

(Inherited from ControlBuilder)
ControlType

获取要创建的控件的 TypeGets the Type for the control to be created.

(Inherited from ControlBuilder)
CurrentFilterResolutionService

获取一个 IFilterResolutionService 对象,在设计器中分析和保持控件时使用该对象管理与设备筛选器相关的服务。Gets an IFilterResolutionService object that is used to manage device-filter related services when parsing and persisting controls in the designer.

(Inherited from ControlBuilder)
DeclareType

获取代码生成将用于声明控件的类型。Gets the type that will be used by code generation to declare the control.

(Inherited from ControlBuilder)
FChildrenAsProperties

获取确定控件是否有设置到 trueParseChildrenAttributeChildrenAsProperties 的值。Gets a value that determines whether the control has a ParseChildrenAttribute with ChildrenAsProperties set to true.

(Inherited from ControlBuilder)
FIsNonParserAccessor

获取确定控件是否实现了 IParserAccessor 界面的值。Gets a value that determines whether the control implements the IParserAccessor interface.

(Inherited from ControlBuilder)
HasAspCode

获取一个值,该值指示控件是否包含任何代码块。Gets a value indicating whether the control contains any code blocks.

(Inherited from ControlBuilder)
ID

获取或设置要生成的控件的标识符属性。Gets or sets the identifier property for the control to be built.

(Inherited from ControlBuilder)
InDesigner

返回 ControlBuilder 是否正在设计器中运行。Returns whether the ControlBuilder is running in the designer.

(Inherited from ControlBuilder)
InPageTheme

获取一个布尔值,该值指示此 ControlBuilder 对象是否用于生成页主题。Gets a Boolean value indicating whether this ControlBuilder object is used to generate page themes.

(Inherited from ControlBuilder)
ItemType

获取在绑定容器上设置的类型。Gets the type set on the binding container.

(Inherited from ControlBuilder)
Localize

获取一个布尔值,该值指示由此 ControlBuilder 对象所创建的控件是否已本地化。Gets a Boolean value indicating whether the control that is created by this ControlBuilder object is localized.

(Inherited from ControlBuilder)
NamingContainerType

获取此生成器所创建控件的命名容器的类型。Gets the type of the naming container for the control that this builder creates.

(Inherited from ControlBuilder)
PageVirtualPath

通过 ControlBuilder 实例获取要建立的页的虚拟路径。Gets the virtual path of a page to be built by this ControlBuilder instance.

(Inherited from ControlBuilder)
Parser

获取负责分析控件的 TemplateParserGets the TemplateParser responsible for parsing the control.

(Inherited from ControlBuilder)
ServiceProvider

获取此 ControlBuilder 对象的服务对象。Gets the service object for this ControlBuilder object.

(Inherited from ControlBuilder)
SubBuilders

获取此 ControlBuilder 对象的 ControlBuilder 子对象的列表。Gets a list of child ControlBuilder objects for this ControlBuilder object.

(Inherited from ControlBuilder)
TagName

获取要生成的控件的标记名称。Gets the tag name for the control to be built.

(Inherited from ControlBuilder)
TemplatePropertyEntries

获取模板属性项的集合。Gets a collection of template property entries.

(Inherited from ControlBuilder)
ThemeResolutionService

获取一个 IThemeResolutionService 对象,该对象用于在设计时管理控件的主题和外观。Gets an IThemeResolutionService object that is used in design time to manage control themes and skins.

(Inherited from ControlBuilder)

Methods

AllowWhitespaceLiterals()

确定在控件的开始和结束标记之间的内容中是否允许存在空白。Determines whether white space literals are permitted in the content between a control's opening and closing tags. 此方法由 ASP.NET 页面框架调用。This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
AppendLiteralString(String)

将指定的文本内容添加到控件。Adds the specified literal content to a control. 此方法由 ASP.NET 页面框架调用。This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
AppendSubBuilder(ControlBuilder)

将生成器添加到属于容器控件的任何子控件的 ControlBuilder 对象。Adds builders to the ControlBuilder object for any child controls that belong to the container control.

(Inherited from ControlBuilder)
BuildObject()

生成 ControlType 属性所标识的控件的实例。Builds an instance of the control identified by the ControlType property.

BuildObject()

生成此 ControlBuilder 对象所引用的控件的设计时实例。Builds a design-time instance of the control that is referred to by this ControlBuilder object.

(Inherited from ControlBuilder)
CloseControl()

由分析器调用以通知生成器对控件的开始和结束标记的分析已完成。Called by the parser to inform the builder that the parsing of the control's opening and closing tags is complete.

(Inherited from ControlBuilder)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetChildControlType(String, IDictionary)

获取与子标记对应的控件类型的 TypeObtains the Type of the control type corresponding to a child tag. 此方法由 ASP.NET 页面框架调用。This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetObjectPersistData()

创建此 ObjectPersistData 对象的 ControlBuilder 对象。Creates the ObjectPersistData object for this ControlBuilder object.

(Inherited from ControlBuilder)
GetResourceKey()

检索此 ControlBuilder 对象的资源键。Retrieves the resource key for this ControlBuilder object.

(Inherited from ControlBuilder)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
HasBody()

确定控件是否同时具有开始标记和结束标记。Determines if a control has both an opening and closing tag. 此方法由 ASP.NET 页面框架调用。This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
HtmlDecodeLiterals()

确定 HTML 控件的字符串是否必须是 HTML 解码的。Determines whether the literal string of an HTML control must be HTML decoded. 此方法由 ASP.NET 页面框架调用。This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
Init(TemplateParser, ControlBuilder, Type, String, String, IDictionary)

实例化 ControlBuilder 后再进行初始化以便使用。Initializes the ControlBuilder for use after it is instantiated. 此方法由 ASP.NET 页面框架调用。This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
NeedsTagInnerText()

确定控件生成器是否需要获取控件的内部文本。Determines whether the control builder needs to get the control's inner text.

OnAppendToParentBuilder(ControlBuilder)

通知 ControlBuilder 正在将它添加到父控件生成器。Notifies the ControlBuilder that it is being added to a parent control builder.

(Inherited from ControlBuilder)
ProcessGeneratedCode(CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod)

启用自定义控件生成器以访问生成的代码文档对象模型 (CodeDom),并在分析和生成控件的过程中插入和修改代码。Enables custom control builders to access the generated Code Document Object Model (CodeDom) and insert and modify code during the process of parsing and building controls.

(Inherited from ControlBuilder)
SetResourceKey(String)

设置此 ControlBuilder 对象的资源键。Sets the resource key for this ControlBuilder object.

(Inherited from ControlBuilder)
SetServiceProvider(IServiceProvider)

设置此 ControlBuilder 对象的服务对象。Sets the service object for this ControlBuilder object.

(Inherited from ControlBuilder)
SetTagInnerText(String)

UserControlControlBuilder 提供控件标记的内部文本。Provides the UserControlControlBuilder object with the inner text of the control tag.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also