HtmlEmptyTagControlBuilder 類別

定義

與網頁剖析器互動,以建置沒有主體或結尾標記的 HTML 伺服器控制項。Interacts with the page parser to build HTML server controls that do not have a body or closing tag. 此類別無法獲得繼承。This class cannot be inherited.

public ref class HtmlEmptyTagControlBuilder sealed : System::Web::UI::ControlBuilder
public sealed class HtmlEmptyTagControlBuilder : System.Web.UI.ControlBuilder
type HtmlEmptyTagControlBuilder = class
    inherit ControlBuilder
Public NotInheritable Class HtmlEmptyTagControlBuilder
Inherits ControlBuilder
繼承
HtmlEmptyTagControlBuilder

備註

HtmlEmptyTagControlBuilder 控制項會與頁面剖析器互動,以建立沒有內文或結束記號的 HTML 伺服器控制項,例如 <img><link><input><meta>The HtmlEmptyTagControlBuilder control interacts with the page parser to build HTML server controls that do not have a body or closing tag, such as <img>, <link>, <input>, and <meta>. HasBody屬性一律會傳回 false ,表示以控制項建立的控制項沒有 HtmlEmptyTagControlBuilder 結束記號。The HasBody property always returns false, indicating that controls built with the HtmlEmptyTagControlBuilder control do not have closing tags.

建構函式

HtmlEmptyTagControlBuilder()

初始化 HtmlEmptyTagControlBuilder 類別的新執行個體。Initializes a new instance of the HtmlEmptyTagControlBuilder class.

屬性

BindingContainerBuilder

取得控制項產生器,對應於這個產生器所建立之控制項的繫結容器。Gets the control builder that corresponds to the binding container for the control that this builder creates.

(繼承來源 ControlBuilder)
BindingContainerType

取得這個產生器所建立之控制項的繫結容器型別。Gets the type of the binding container for the control that this builder creates.

(繼承來源 ControlBuilder)
ComplexPropertyEntries

取得複雜屬性項目的集合。Gets a collection of complex property entries.

(繼承來源 ControlBuilder)
ControlType

取得所要建立的控制項的 TypeGets the Type for the control to be created.

(繼承來源 ControlBuilder)
CurrentFilterResolutionService

取得 IFilterResolutionService 物件,用於設計工具中剖析和保存控制項時,管理裝置篩選條件相關的服務。Gets an IFilterResolutionService object that is used to manage device-filter related services when parsing and persisting controls in the designer.

(繼承來源 ControlBuilder)
DeclareType

取得產生程式碼時用來宣告控制項的型別。Gets the type that will be used by code generation to declare the control.

(繼承來源 ControlBuilder)
FChildrenAsProperties

取得值,判斷控制項是否有 ParseChildrenAttribute 設為 trueChildrenAsPropertiesGets a value that determines whether the control has a ParseChildrenAttribute with ChildrenAsProperties set to true.

(繼承來源 ControlBuilder)
FIsNonParserAccessor

取得值,判斷控制項是否實作 IParserAccessor 介面。Gets a value that determines whether the control implements the IParserAccessor interface.

(繼承來源 ControlBuilder)
HasAspCode

取得值,指出控制項是否包含任何程式碼區塊。Gets a value indicating whether the control contains any code blocks.

(繼承來源 ControlBuilder)
ID

取得或設定要建置的控制項的識別項屬性。Gets or sets the identifier property for the control to be built.

(繼承來源 ControlBuilder)
InDesigner

傳回值,指出 ControlBuilder 是否在設計工具中執行。Returns whether the ControlBuilder is running in the designer.

(繼承來源 ControlBuilder)
InPageTheme

取得布林值,指出這個 ControlBuilder 物件是否用來產生頁面主題。Gets a Boolean value indicating whether this ControlBuilder object is used to generate page themes.

(繼承來源 ControlBuilder)
ItemType

取得在繫結容器上設定的類型。Gets the type set on the binding container.

(繼承來源 ControlBuilder)
Localize

取得布林值,指出這個 ControlBuilder 物件所建立的控制項是否當地語系化。Gets a Boolean value indicating whether the control that is created by this ControlBuilder object is localized.

(繼承來源 ControlBuilder)
NamingContainerType

取得這個產生器所建立之控制項的命名容器型別。Gets the type of the naming container for the control that this builder creates.

(繼承來源 ControlBuilder)
PageVirtualPath

取得欲以此 ControlBuilder 執行個體組建之頁面的虛擬路徑。Gets the virtual path of a page to be built by this ControlBuilder instance.

(繼承來源 ControlBuilder)
Parser

取得負責剖析控制項的 TemplateParserGets the TemplateParser responsible for parsing the control.

(繼承來源 ControlBuilder)
ServiceProvider

取得這個 ControlBuilder 物件的服務物件。Gets the service object for this ControlBuilder object.

(繼承來源 ControlBuilder)
SubBuilders

取得這個 ControlBuilder 物件之子 ControlBuilder 物件的清單。Gets a list of child ControlBuilder objects for this ControlBuilder object.

(繼承來源 ControlBuilder)
TagName

取得要建置的控制項的標記名稱。Gets the tag name for the control to be built.

(繼承來源 ControlBuilder)
TemplatePropertyEntries

取得樣板屬性項目的集合。Gets a collection of template property entries.

(繼承來源 ControlBuilder)
ThemeResolutionService

取得 IThemeResolutionService 物件,這個物件在設計階段用來管理控制項主題和面板。Gets an IThemeResolutionService object that is used in design time to manage control themes and skins.

(繼承來源 ControlBuilder)

方法

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.

(繼承來源 ControlBuilder)
AppendLiteralString(String)

將指定的常值內容加入控制項。Adds the specified literal content to a control. 此方法由 ASP.NET 網頁架構呼叫。This method is called by the ASP.NET page framework.

(繼承來源 ControlBuilder)
AppendSubBuilder(ControlBuilder)

針對屬於容器控制項的任何子控制項,將產生器加入 ControlBuilder 物件中。Adds builders to the ControlBuilder object for any child controls that belong to the container control.

(繼承來源 ControlBuilder)
BuildObject()

建置這個 ControlBuilder 物件所參考之控制項的設計階段執行個體。Builds a design-time instance of the control that is referred to by this ControlBuilder object.

(繼承來源 ControlBuilder)
CloseControl()

由剖析器呼叫,通知產生器,控制項開頭和結尾標記的剖析已經完成。Called by the parser to inform the builder that the parsing of the control's opening and closing tags is complete.

(繼承來源 ControlBuilder)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 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.

(繼承來源 ControlBuilder)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetObjectPersistData()

建立這個 ObjectPersistData 物件的 ControlBuilder 物件。Creates the ObjectPersistData object for this ControlBuilder object.

(繼承來源 ControlBuilder)
GetResourceKey()

擷取這個 ControlBuilder 物件的資源索引鍵。Retrieves the resource key for this ControlBuilder object.

(繼承來源 ControlBuilder)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
HasBody()

指示以 HtmlEmptyTagControlBuilder 控制項建置的控制項沒有結尾標記。Indicates that the controls built with the HtmlEmptyTagControlBuilder control do not have closing tags.

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.

(繼承來源 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.

(繼承來源 ControlBuilder)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
NeedsTagInnerText()

判斷控制項產生器是否需要取得它的內部文字。Determines if the control builder needs to get its inner text. 如果是,必須呼叫 SetTagInnerText(String) 方法。If so, the SetTagInnerText(String) method must be called. 此方法由 ASP.NET 網頁架構呼叫。This method is called by the ASP.NET page framework.

(繼承來源 ControlBuilder)
OnAppendToParentBuilder(ControlBuilder)

告知 ControlBuilder 已經加入到父控制項產生器中。Notifies the ControlBuilder that it is being added to a parent control builder.

(繼承來源 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.

(繼承來源 ControlBuilder)
SetResourceKey(String)

設定這個 ControlBuilder 物件的資源索引鍵。Sets the resource key for this ControlBuilder object.

(繼承來源 ControlBuilder)
SetServiceProvider(IServiceProvider)

設定這個 ControlBuilder 物件的服務物件。Sets the service object for this ControlBuilder object.

(繼承來源 ControlBuilder)
SetTagInnerText(String)

提供控制項標記內部文字給 ControlBuilderProvides the ControlBuilder with the inner text of the control tag.

(繼承來源 ControlBuilder)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱