DeviceSpecificControlBuilder 類別

定義

警告

此 API 現已淘汰。

提供 DeviceSpecific/Choice 建構的剖析支援。Provides parsing support for DeviceSpecific/Choice constructs. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public ref class DeviceSpecificControlBuilder : System::Web::UI::ControlBuilder
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
public class DeviceSpecificControlBuilder : System.Web.UI.ControlBuilder
type DeviceSpecificControlBuilder = class
    inherit ControlBuilder
Public Class DeviceSpecificControlBuilder
Inherits ControlBuilder
繼承
DeviceSpecificControlBuilder
屬性

備註

DeviceSpecificControlBuilder 類別是在剖析<的的>專案時,由頁面剖析器內部建立和使用。The DeviceSpecificControlBuilder class is internally created and used by the page parser when parsing a <DeviceSpecific> element.

DeviceSpecificControlBuilder 類別會實行下列持續性行為:它會直接忽略控制項內的空白字元,而且只允許<選擇 >元素做為子系。The DeviceSpecificControlBuilder class implements the following persistence behaviors: It ignores white space directly inside the control, and it allows only a <Choice> element as child.

建構函式

DeviceSpecificControlBuilder()

建立 DeviceSpecificControlBuilder 類別的執行個體。Creates an instance of DeviceSpecificControlBuilder the class. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

屬性

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 設為 ChildrenAsPropertiestrueGets 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. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

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. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

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()

判斷控制項是否有開頭和結尾標記。Determines if a control has both an opening and closing tag. 此方法由 ASP.NET 網頁架構呼叫。This method is called by the ASP.NET page framework.

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

(繼承來源 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 的淺層複本 (Shallow Copy)。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)

安全性

AspNetHostingPermission
用於裝載環境中的作業。for operating in a hosted environment. 要求值:InheritanceDemand,權限值:MinimalDemand value: InheritanceDemand; Permission value: Minimal.

適用於

另請參閱