DeviceSpecific 类

定义

注意

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 http://go.microsoft.com/fwlink/?LinkId=157231.

提供一个构造,用于指定 DeviceSpecific> 元素中的<多个内容替代项之间的选择。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

public ref class DeviceSpecific : System::Web::UI::Control
[System.Web.UI.MobileControls.PersistName("DeviceSpecific")]
public class DeviceSpecific : System.Web.UI.Control
[System.Web.UI.MobileControls.PersistName("DeviceSpecific")]
[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 http://go.microsoft.com/fwlink/?LinkId=157231.")]
public class DeviceSpecific : System.Web.UI.Control
[<System.Web.UI.MobileControls.PersistName("DeviceSpecific")>]
type DeviceSpecific = class
    inherit Control
[<System.Web.UI.MobileControls.PersistName("DeviceSpecific")>]
[<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 http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type DeviceSpecific = class
    inherit Control
Public Class DeviceSpecific
Inherits Control
继承
DeviceSpecific
属性

示例

下面的代码示例演示如何使用 DeviceSpecificDeviceSpecificChoice 对象在移动窗体中创建特定于各种设备的接口。

注意

下面的代码示例使用单文件代码模型,如果直接复制到代码隐藏文件中,可能无法正常工作。 必须将此代码示例复制到扩展名为 .aspx 的空文本文件中。 有关详细信息,请参阅 ASP.NET Web Forms页代码模型

<%@ Page Language="C#" 
    Inherits="System.Web.UI.MobileControls.MobilePage" %>
<%@ Register TagPrefix="mobile" 
    Namespace="System.Web.UI.MobileControls" 
    Assembly="System.Web.Mobile" %>

<script runat="server">
    private void Form_Init(object sender, System.EventArgs e)
    {
        // Create a DeviceSpecific group for Choice elements
        DeviceSpecific devSpecific = new DeviceSpecific();

        // Create two Choice objects, one with a filter
        for (int i = 0; i < 2; i++)
        {
            DeviceSpecificChoice devChoice;
            ITemplate custTemplate;

            // Create a Choice object 
            devChoice = new DeviceSpecificChoice();
            // Only the first Choice has a filter (must be in Web.config)
            if (i == 0)
                devChoice.Filter = "isHTML32";

            // Create the header template.
            custTemplate = new CustomTemplate("HeaderTemplate");
            // Put header template in a new container
            custTemplate.InstantiateIn(new TemplateContainer());
            // Add the header template to the Choice
            devChoice.Templates.Add("HeaderTemplate", custTemplate);

            // Create the footer template
            custTemplate = new CustomTemplate("FooterTemplate");
            // Put footer template in a new container
            custTemplate.InstantiateIn(new TemplateContainer());
            // Add the footer template to the Choice
            devChoice.Templates.Add("FooterTemplate", custTemplate);

            // Add the Choice to the DeviceSpecific
            ((IParserAccessor)devSpecific).AddParsedSubObject(devChoice);
        }

        // Add the DeviceSpecific object to the form
        ((IParserAccessor)Form1).AddParsedSubObject(devSpecific);
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        System.Web.UI.MobileControls.Label lab;
        lab = (System.Web.UI.MobileControls.Label)Form1.Header.FindControl("Label1");
        if (lab == null)
            return;

        // Get the selected choice's filter name
        string filterName = 
            Form1.DeviceSpecific.SelectedChoice.Filter;
        if (filterName == "isHTML32")
            lab.Text += " - HTML32";
        else
            lab.Text += " - Default";
    }

    public class CustomTemplate : ITemplate
    {
        String templateName;

        // Constructor
        public CustomTemplate(string TemplateName)
        {
            templateName = TemplateName;
        }

        public void InstantiateIn(Control container)
        {
            if (templateName == "HeaderTemplate")
            {
                // Create a label
                System.Web.UI.MobileControls.Label lab;
                lab = new System.Web.UI.MobileControls.Label();
                lab.Text = "Header Template";
                lab.ID = "Label1";

                // Create a command
                Command cmd = new Command();
                cmd.Text = "Submit";

                // Add controls to the container
                container.Controls.Add(lab);
                container.Controls.Add(cmd);
            }
            else if (templateName == "FooterTemplate")
            {
                // Create a label
                System.Web.UI.MobileControls.Label lab;
                lab = new System.Web.UI.MobileControls.Label();
                lab.ID = "Label2";
                lab.Text = "Footer Template";

                // Add label to the container
                container.Controls.Add(lab);
            }
        }
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
    <mobile:form id="Form1" runat="server" OnInit="Form_Init">
    </mobile:form>
</body>
</html>
<%@ Page Language="VB" 
    Inherits="System.Web.UI.MobileControls.MobilePage" %>
<%@ Register TagPrefix="mobile" 
    Namespace="System.Web.UI.MobileControls" 
    Assembly="System.Web.Mobile" %>

<script runat="server">
    Private Sub Form_Init(ByVal sender As Object, ByVal e As EventArgs)
        ' Create a DeviceSpecific group for Choice elements
        Dim devSpecific As New DeviceSpecific()
        Dim ipa As IParserAccessor

        ' Create two Choice objects, one with a filter
        For i As Integer = 0 To 1
            Dim devChoice As DeviceSpecificChoice
            Dim custTemplate As ITemplate

            ' Create a Choice object 
            devChoice = New DeviceSpecificChoice()
            ' Only the first Choice has a filter (must be in Web.config)
            If i = 0 Then
                devChoice.Filter = "isHTML32"

                ' Create the header template.
                custTemplate = New CustomTemplate("HeaderTemplate")
                ' Put header template in a new container
                custTemplate.InstantiateIn(New TemplateContainer())
                ' Add the header template to the Choice
                devChoice.Templates.Add("HeaderTemplate", custTemplate)

                ' Create the footer template
                custTemplate = New CustomTemplate("FooterTemplate")
                ' Put footer template in a new container
                custTemplate.InstantiateIn(New TemplateContainer())
                ' Add the footer template to the Choice
                devChoice.Templates.Add("FooterTemplate", custTemplate)
            End If
            
            ' Add the Choice to the DeviceSpecific
            ipa = CType(devSpecific, IParserAccessor)
            ipa.AddParsedSubObject(devChoice)
        Next

        ' Add the DeviceSpecific object to the form
        ipa = CType(Form1, IParserAccessor)
        ipa.AddParsedSubObject(devSpecific)
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, _
        ByVal e As EventArgs)

        Dim lab As System.Web.UI.MobileControls.Label
        lab = CType(Form1.Header.FindControl("Label1"), _
            System.Web.UI.MobileControls.Label)
        If IsNothing(lab) Then Return

        ' Get the selected choice's filter name
        Dim filterName As String = _
        Form1.DeviceSpecific.SelectedChoice.Filter
        If filterName = "isHTML32" Then
            lab.Text += " - HTML32"
        Else
            lab.Text += " - Default"
        End If
    End Sub

    Public Class CustomTemplate
        Implements ITemplate
        Dim templName As String

        ' Constructor
        Public Sub New(ByVal TemplateName As String)
            templName = TemplateName
        End Sub

        Public Sub InstantiateIn(ByVal container As Control) _
            Implements ITemplate.InstantiateIn
            
            If templName = "HeaderTemplate" Then
                ' Create a label
                Dim lab As New System.Web.UI.MobileControls.Label
                lab.Text = "Header Template"
                lab.ID = "Label1"

                ' Create a command
                Dim cmd As New Command()
                cmd.Text = "Submit"

                ' Add controls to the container
                container.Controls.Add(lab)
                container.Controls.Add(cmd)
            
            ElseIf templName = "FooterTemplate" Then
                ' Create a label
                Dim lab As System.Web.UI.MobileControls.Label
                lab = New System.Web.UI.MobileControls.Label()
                lab.ID = "Label2"
                lab.Text = "Footer Template"

                ' Add label to the container
                container.Controls.Add(lab)
            End If
        End Sub
    End Class

</script>

<html xmlns="http:'www.w3.org/1999/xhtml" >
<body>
    <mobile:form id="Form1" runat="server" 
        OnInit="Form_Init">
    </mobile:form>
</body>
</html>

上述所有代码都可以以声明方式替换为以下标记:

对于这些示例,Web.config 文件必须具有以下元素:

注解

<在 DeviceSpecific> 元素中,通常指定一个或多个 <Choice> 元素,每个元素都包含指定如何根据目标设备功能评估选择的属性。 在运行时,将按顺序计算每个选项,并使用成功计算的第一个选项。 DeviceSpecific/Choice 构造用于指定模板集和替代属性;例如,它可用于为 Image 控件指定特定于设备的映像。

注意

尽管 DeviceSpecific 类继承自 Web Forms System.Web.UI.Control 命名空间,但这只是实现详细信息。 元素 <Choice> 的行为与 控件不一样。

构造函数

DeviceSpecific()
已过时.

初始化 DeviceSpecific 类的新实例。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

属性

Adapter
已过时.

获取控件的浏览器特定适配器。

(继承自 Control)
AppRelativeTemplateSourceDirectory
已过时.

获取或设置包含该控件的 PageUserControl 对象的应用程序相对虚拟目录。

(继承自 Control)
BindingContainer
已过时.

获取包含该控件的数据绑定的控件。

(继承自 Control)
ChildControlsCreated
已过时.

获取一个值,该值指示是否已创建服务器控件的子控件。

(继承自 Control)
Choices
已过时.

检索 DeviceSpecific> 元素中的<选项集合。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

ClientID
已过时.

获取由 ASP.NET 生成的 HTML 标记的控件 ID。

(继承自 Control)
ClientIDMode
已过时.

获取或设置用于生成 ClientID 属性值的算法。

(继承自 Control)
ClientIDSeparator
已过时.

获取一个字符值,该值表示 ClientID 属性中使用的分隔符字符。

(继承自 Control)
Context
已过时.

为当前 Web 请求获取与服务器控件关联的 HttpContext 对象。

(继承自 Control)
Controls
已过时.

获取 ControlCollection 对象,该对象表示 UI 层次结构中的指定服务器控件的子控件。

(继承自 Control)
DataItemContainer
已过时.

如果命名容器实现 IDataItemContainer,则获取对命名容器的引用。

(继承自 Control)
DataKeysContainer
已过时.

如果命名容器实现 IDataKeysControl,则获取对命名容器的引用。

(继承自 Control)
DesignMode
已过时.

获取一个值,该值指示是否正在使用设计图面上的一个控件。

(继承自 Control)
EnableTheming
已过时.

获取或设置一个值,该值指示主题是否应用于该控件。

(继承自 Control)
EnableViewState
已过时.

获取或设置一个值,该值指示控件是否自动保存其状态,以便在往返行程中使用。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

Events
已过时.

获取控件的事件处理程序委托列表。 此属性为只读。

(继承自 Control)
HasChildViewState
已过时.

获取一个值,该值指示当前服务器控件的子控件是否具有任何已保存的视图状态设置。

(继承自 Control)
HasTemplates
已过时.

获取一个值,该值指示 DeviceSpecific> 元素中<当前选定的选项具有其中定义的模板。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

ID
已过时.

获取或设置分配给服务器控件的编程标识符。

(继承自 Control)
IdSeparator
已过时.

获取用于分隔控件标识符的字符。

(继承自 Control)
IsChildControlStateCleared
已过时.

获取一个值,该值指示该控件中包含的控件是否具有控件状态。

(继承自 Control)
IsTrackingViewState
已过时.

获取一个值,用于指示服务器控件是否会将更改保存到其视图状态中。

(继承自 Control)
IsViewStateEnabled
已过时.

获取一个值,该值指示是否为该控件启用了视图状态。

(继承自 Control)
LoadViewStateByID
已过时.

获取一个值,该值指示控件是否通过 ID 而不是索引参与加载其视图状态。

(继承自 Control)
MobilePage
已过时.

获取包含页。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

NamingContainer
已过时.

获取对服务器控件的命名容器的引用,此引用创建唯一的命名空间,以区分具有相同 ID 属性值的服务器控件。

(继承自 Control)
Owner
已过时.

获取指定 DeviceSpecific 对象的所有者,该所有者为控件或样式。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

Page
已过时.

获取对包含服务器控件的 Page 实例的引用。

(继承自 Control)
Parent
已过时.

获取对页 UI 层次结构中服务器控件的父控件的引用。

(继承自 Control)
RenderingCompatibility
已过时.

获取一个值,该值指定呈现的 HTML 将与之兼容的 ASP.NET 版本。

(继承自 Control)
SelectedChoice
已过时.

获取当前选定的选择,如果没有适用的选择,则为 null。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

Site
已过时.

获取容器信息,该容器在呈现于设计图面上时承载当前控件。

(继承自 Control)
SkinID
已过时.

获取或设置要应用于控件的外观。

(继承自 Control)
TemplateControl
已过时.

获取或设置对包含该控件的模板的引用。

(继承自 Control)
TemplateSourceDirectory
已过时.

获取包含当前服务器控件的 PageUserControl 的虚拟目录。

(继承自 Control)
UniqueID
已过时.

获取服务器控件的唯一的、以分层形式限定的标识符。

(继承自 Control)
ValidateRequestMode
已过时.

获取或设置指示控件是否检查来自浏览器的客户端输入是否具有潜在危险值的值。

(继承自 Control)
ViewState
已过时.

获取状态信息的字典,这些信息使您可以在同一页的多个请求间保存和还原服务器控件的视图状态。

(继承自 Control)
ViewStateIgnoresCase
已过时.

获取一个值,该值指示 StateBag 对象是否不区分大小写。

(继承自 Control)
ViewStateMode
已过时.

获取或设置此控件的视图状态模式。

(继承自 Control)
Visible
已过时.

获取或设置指示是否呈现指定控件的值。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

方法

AddedControl(Control, Int32)
已过时.

在子控件添加到 Control 对象的 Controls 集合后调用。

(继承自 Control)
AddParsedSubObject(Object)
已过时.

通知服务器控件,分析了一个元素(XML 或 HTML),并将该元素添加到服务器控件的 ControlCollection 对象中。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

ApplyStyleSheetSkin(Page)
已过时.

将页样式表中定义的样式属性应用到控件。

(继承自 Control)
BeginRenderTracing(TextWriter, Object)
已过时.

开始输出数据的设计时追踪。

(继承自 Control)
BuildProfileTree(String, Boolean)
已过时.

收集有关服务器控件的信息并将该信息发送到 Trace 属性,在启用页的跟踪功能时将显示该属性。

(继承自 Control)
ClearCachedClientID()
已过时.

将缓存的 ClientID 值设置为 null

(继承自 Control)
ClearChildControlState()
已过时.

删除服务器控件的子控件的控件状态信息。

(继承自 Control)
ClearChildState()
已过时.

删除服务器控件的所有子控件的视图状态和控件状态信息。

(继承自 Control)
ClearChildViewState()
已过时.

删除服务器控件的所有子控件的视图状态信息。

(继承自 Control)
ClearEffectiveClientIDMode()
已过时.

将当前控件实例和任何子控件的 ClientIDMode 属性设置为 Inherit

(继承自 Control)
CreateChildControls()
已过时.

由 ASP.NET 页框架调用,以通知服务器控件在准备回发或呈现时使用基于撰写的实现来创建其所包含任何子控件。

(继承自 Control)
CreateControlCollection()
已过时.

创建一个新 ControlCollection 对象来保存服务器控件的子控件(包括文本控件和服务器控件)。

(继承自 Control)
DataBind()
已过时.

将数据源绑定到调用的服务器控件及其所有子控件。

(继承自 Control)
DataBind(Boolean)
已过时.

将数据源绑定到调用的服务器控件及其所有子控件,同时可以选择引发 DataBinding 事件。

(继承自 Control)
DataBindChildren()
已过时.

将数据源绑定到服务器控件的子控件。

(继承自 Control)
Dispose()
已过时.

使服务器控件得以在从内存中释放之前执行最后的清理操作。

(继承自 Control)
EndRenderTracing(TextWriter, Object)
已过时.

结束输出数据的设计时追踪。

(继承自 Control)
EnsureChildControls()
已过时.

确定服务器控件是否包含子控件。 如果不包含,则创建子控件。

(继承自 Control)
EnsureID()
已过时.

为尚未分配标识符的控件创建标识符。

(继承自 Control)
Equals(Object)
已过时.

确定指定对象是否等于当前对象。

(继承自 Object)
FindControl(String)
已过时.

在当前的命名容器中搜索带指定 id 参数的服务器控件。

(继承自 Control)
FindControl(String, Int32)
已过时.

使用指定的 idpathOffset 参数(该参数有助于搜索)中指定的整数在当前命名容器中搜索服务器控件。 不应重写此版本的 FindControl 方法。

(继承自 Control)
Focus()
已过时.

为控件设置输入焦点。

(继承自 Control)
GetDesignModeState()
已过时.

获取控件的设计时数据。

(继承自 Control)
GetHashCode()
已过时.

作为默认哈希函数。

(继承自 Object)
GetRouteUrl(Object)
已过时.

获取与一组路由参数对应的 URL。

(继承自 Control)
GetRouteUrl(RouteValueDictionary)
已过时.

获取与一组路由参数对应的 URL。

(继承自 Control)
GetRouteUrl(String, Object)
已过时.

获取与一组路由参数以及某个路由名称对应的 URL。

(继承自 Control)
GetRouteUrl(String, RouteValueDictionary)
已过时.

获取与一组路由参数以及某个路由名称对应的 URL。

(继承自 Control)
GetTemplate(String)
已过时.

获取具有指定名称的模板。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
GetUniqueIDRelativeTo(Control)
已过时.

返回指定控件的 UniqueID 属性的前缀部分。

(继承自 Control)
HasControls()
已过时.

确定服务器控件是否包含任何子控件。

(继承自 Control)
HasEvents()
已过时.

返回一个值,该值指示是否为控件或任何子控件注册事件。

(继承自 Control)
IsLiteralContent()
已过时.

确定服务器控件是否只包含文字内容。

(继承自 Control)
LoadControlState(Object)
已过时.

SaveControlState() 方法保存的上一个页请求还原控件状态信息。

(继承自 Control)
LoadViewState(Object)
已过时.

从用 SaveViewState() 方法保存的上一个页面请求还原视图状态信息。

(继承自 Control)
MapPathSecure(String)
已过时.

检索虚拟路径(绝对的或相对的)映射到的物理路径。

(继承自 Control)
MemberwiseClone()
已过时.

创建当前 Object 的浅表副本。

(继承自 Object)
OnBubbleEvent(Object, EventArgs)
已过时.

确定服务器控件的事件是否沿页的 UI 服务器控件层次结构向上传递。

(继承自 Control)
OnDataBinding(EventArgs)
已过时.

引发 DataBinding 事件。

(继承自 Control)
OnInit(EventArgs)
已过时.

引发 Init 事件。

(继承自 Control)
OnLoad(EventArgs)
已过时.

引发 Load 事件。

(继承自 Control)
OnPreRender(EventArgs)
已过时.

引发 PreRender 事件。

(继承自 Control)
OnUnload(EventArgs)
已过时.

引发 Unload 事件。

(继承自 Control)
OpenFile(String)
已过时.

获取用于读取文件的 Stream

(继承自 Control)
RaiseBubbleEvent(Object, EventArgs)
已过时.

将所有事件源及其信息分配给控件的父级。

(继承自 Control)
RemovedControl(Control)
已过时.

Control 对象的 Controls 集合移除子控件后调用。

(继承自 Control)
Render(HtmlTextWriter)
已过时.

将服务器控件内容发送到给定的 HtmlTextWriter 对象,该对象可编写将在客户端呈现的内容。

(继承自 Control)
RenderChildren(HtmlTextWriter)
已过时.

将服务器控件子级的内容输出到提供的 HtmlTextWriter 对象,该对象可写入要在客户端上呈现的内容。

(继承自 Control)
RenderControl(HtmlTextWriter)
已过时.

将服务器控件内容输出到所提供的 HtmlTextWriter 对象,如果启用了跟踪,则还将存储有关该控件的跟踪信息。

(继承自 Control)
RenderControl(HtmlTextWriter, ControlAdapter)
已过时.

使用提供的 HtmlTextWriter 对象将服务器控件内容输出到提供的 ControlAdapter 对象。

(继承自 Control)
ResolveAdapter()
已过时.

获取负责呈现指定控件的控件适配器。

(继承自 Control)
ResolveClientUrl(String)
已过时.

获取浏览器可以使用的 URL。

(继承自 Control)
ResolveUrl(String)
已过时.

将 URL 转换为在请求客户端可用的 URL。

(继承自 Control)
SaveControlState()
已过时.

保存将页面回发到服务器之后发生的所有服务器控件状态更改。

(继承自 Control)
SaveViewState()
已过时.

保存将页面回发到服务器之后发生的所有服务器控件视图状态更改。

(继承自 Control)
SetDesignModeState(IDictionary)
已过时.

为控件设置设计时数据。

(继承自 Control)
SetRenderMethodDelegate(RenderMethod)
已过时.

分配事件处理程序委托,以将服务器控件及其内容呈现到父控件中。

(继承自 Control)
SetTraceData(Object, Object)
已过时.

使用跟踪数据键和跟踪数据值,为呈现数据的设计时追踪设置跟踪数据。

(继承自 Control)
SetTraceData(Object, Object, Object)
已过时.

使用跟踪对象、跟踪数据键和跟踪数据值,为呈现数据的设计时追踪设置跟踪数据。

(继承自 Control)
ToString()
已过时.

返回表示当前对象的字符串。

(继承自 Object)
TrackViewState()
已过时.

导致跟踪服务器控件的视图状态的更改,以便这些更改可以存储到服务器控件的 StateBag 对象中。 通过 ViewState 属性可访问此对象。

(继承自 Control)

事件

DataBinding
已过时.

在设计时创建数据绑定表达式时发生。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

Disposed
已过时.

当从内存释放服务器控件时发生,这是请求 ASP.NET 页时服务器控件生存期的最后阶段。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

Init
已过时.

当控件初始化时发生;初始化是控件生存期的第一步。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

Load
已过时.

当服务器控件加载到 Page 对象中时发生。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

PreRender
已过时.

当控件将要呈现给其包含的 MobilePage 对象时发生。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

Unload
已过时.

当服务器控件从内存中卸载时发生。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

显式接口实现

IControlBuilderAccessor.ControlBuilder
已过时.

有关此成员的说明,请参见 ControlBuilder

(继承自 Control)
IControlDesignerAccessor.GetDesignModeState()
已过时.

有关此成员的说明,请参见 GetDesignModeState()

(继承自 Control)
IControlDesignerAccessor.SetDesignModeState(IDictionary)
已过时.

有关此成员的说明,请参见 SetDesignModeState(IDictionary)

(继承自 Control)
IControlDesignerAccessor.SetOwnerControl(Control)
已过时.

有关此成员的说明,请参见 SetOwnerControl(Control)

(继承自 Control)
IControlDesignerAccessor.UserData
已过时.

有关此成员的说明,请参见 UserData

(继承自 Control)
IDataBindingsAccessor.DataBindings
已过时.

有关此成员的说明,请参见 DataBindings

(继承自 Control)
IDataBindingsAccessor.HasDataBindings
已过时.

有关此成员的说明,请参见 HasDataBindings

(继承自 Control)
IExpressionsAccessor.Expressions
已过时.

有关此成员的说明,请参见 Expressions

(继承自 Control)
IExpressionsAccessor.HasExpressions
已过时.

有关此成员的说明,请参见 HasExpressions

(继承自 Control)
IParserAccessor.AddParsedSubObject(Object)
已过时.

有关此成员的说明,请参见 AddParsedSubObject(Object)

(继承自 Control)

扩展方法

FindDataSourceControl(Control)
已过时.

返回与指定控件的数据控件关联的数据源。

FindFieldTemplate(Control, String)
已过时.

返回指定控件的命名容器中指定列的字段模板。

FindMetaTable(Control)
已过时.

返回包含数据控件的元表对象。

适用于

另请参阅