IControlAdapter IControlAdapter IControlAdapter IControlAdapter Interface

定义

警告

此 API 现已过时。

定义到控件适配器的接口。 Defines the interface to a control adapter. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public interface class IControlAdapter
[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 interface IControlAdapter
type IControlAdapter = interface
Public Interface IControlAdapter
派生
属性

注解

所有控件适配器必须都实现IControlAdapter接口。All control adapters must implement the IControlAdapter interface. 通常情况下,控件适配器直接或间接继承从ControlAdapter基类,提供此接口的默认实现。Usually, a control adapter inherits directly or indirectly from the ControlAdapter base class, which provides a default implementation of this interface.

属性

Control Control Control Control

返回一个对关联控件的强类型引用。 Returns a strongly typed reference to the associated control. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ItemWeight ItemWeight ItemWeight ItemWeight

访问控件中某一项的大致权重。 Accesses the approximate weight of a single item in the control. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Page Page Page Page

返回与设备适配器关联的页。 Returns the page associated with the device adapter. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

VisibleWeight VisibleWeight VisibleWeight VisibleWeight

返回控件的近似权重(以字符为单位)。 Returns the approximate weight of the control, in characters. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

方法

CreateTemplatedUI(Boolean) CreateTemplatedUI(Boolean) CreateTemplatedUI(Boolean) CreateTemplatedUI(Boolean)

由基类调用,以创建模板化用户界面。 Called by base classes to create a templated UI.

HandlePostBackEvent(String) HandlePostBackEvent(String) HandlePostBackEvent(String) HandlePostBackEvent(String)

如果已处理事件,则返回 true Returns true if the event was handled. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

LoadAdapterState(Object) LoadAdapterState(Object) LoadAdapterState(Object) LoadAdapterState(Object)

返回控件的特定于适配器的视图。 Returns the adapter-specific view for a control. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

LoadPostData(String, NameValueCollection, Object, Boolean) LoadPostData(String, NameValueCollection, Object, Boolean) LoadPostData(String, NameValueCollection, Object, Boolean) LoadPostData(String, NameValueCollection, Object, Boolean)

如果适配器处理 post 数据的加载,则返回 true Returns true if the adapter handles loading the post data. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

OnInit(EventArgs) OnInit(EventArgs) OnInit(EventArgs) OnInit(EventArgs)

在初始化窗体或页面等对象后调用。 Called after an object, such as a form or a page, is initialized. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

OnLoad(EventArgs) OnLoad(EventArgs) OnLoad(EventArgs) OnLoad(EventArgs)

加载与控件、页面或设备适配器相关的数据。 Loads data that pertains to a control, a page, or a device adapter. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

OnPreRender(EventArgs) OnPreRender(EventArgs) OnPreRender(EventArgs) OnPreRender(EventArgs)

由控件的 OnPreRender(EventArgs) 方法调用,以在呈现前执行适配器特定的工作。 Called by the control's OnPreRender(EventArgs) method, to perform adapter-specific work prior to rendering. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

OnUnload(EventArgs) OnUnload(EventArgs) OnUnload(EventArgs) OnUnload(EventArgs)

卸载与控件、页或设备适配器有关的数据。 Unloads data that pertains to a control, a page, or a device adapter. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Render(HtmlTextWriter) Render(HtmlTextWriter) Render(HtmlTextWriter) Render(HtmlTextWriter)

由该控件的 Render(HtmlTextWriter) 方法调用,用于执行呈现。 Called by the control's Render(HtmlTextWriter) method to perform rendering. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SaveAdapterState() SaveAdapterState() SaveAdapterState() SaveAdapterState()

当控件保存其私有视图状态时调用此方法。 This method is called when the control saves its private view state. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

安全性

AspNetHostingPermission
用于在宿主环境中进行操作。 for operating in a hosted environment. 要求值:InheritanceDemand;权限值:Minimal Demand value: InheritanceDemand; Permission value: Minimal.

适用于

另请参阅