MobileUserControl 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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.
提供 ASP.NET 移动用户控件的基类。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅
public ref class MobileUserControl : System::Web::UI::UserControl
public class MobileUserControl : System.Web.UI.UserControl
[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 MobileUserControl : System.Web.UI.UserControl
type MobileUserControl = class
inherit UserControl
[<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 MobileUserControl = class
inherit UserControl
Public Class MobileUserControl
Inherits UserControl
- 继承
- 属性
注解
此类继承自该 UserControl 类。 用户控件以类似于 Page 对象的方式实例化和缓存。 ASP.NET 移动用户控件必须包含在移动页面中才能呈现。
构造函数
| 名称 | 说明 |
|---|---|
| MobileUserControl() |
已过时.
初始化 MobileUserControl 类的新实例。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 |
属性
| 名称 | 说明 |
|---|---|
| Adapter |
已过时.
获取控件的特定于浏览器的适配器。 (继承自 Control) |
| Application |
已过时.
Application获取当前 Web 请求的对象。 (继承自 UserControl) |
| AppRelativeTemplateSourceDirectory |
已过时.
获取或设置包含此控件的 Page 或 UserControl 对象的应用程序相对虚拟目录。 (继承自 Control) |
| AppRelativeVirtualPath |
已过时.
获取或设置从中分析和编译控件的文件的应用程序相对虚拟目录路径。 (继承自 TemplateControl) |
| Attributes |
已过时.
获取在.aspx文件中的用户控件标记中声明的所有属性名称和值对的集合。 (继承自 UserControl) |
| AutoHandlers |
已过时.
ASP.NET AutoHandlers NET 2.0 中已弃用该属性。 它由生成的类使用,不适合在代码中使用。 (继承自 TemplateControl) |
| BindingContainer |
已过时.
获取包含此控件的数据绑定的控件。 (继承自 Control) |
| Cache |
已过时.
Cache获取与包含用户控件的应用程序关联的对象。 (继承自 UserControl) |
| CachePolicy |
已过时.
获取对此用户控件的缓存参数集合的引用。 (继承自 UserControl) |
| ChildControlsCreated |
已过时.
获取一个值,该值指示是否已创建服务器控件的子控件。 (继承自 Control) |
| ClientID |
已过时.
获取由 ASP.NET 生成的 HTML 标记的控件 ID。 (继承自 Control) |
| ClientIDMode |
已过时.
获取或设置用于生成属性值的 ClientID 算法。 (继承自 Control) |
| ClientIDSeparator |
已过时.
获取一个表示属性中使用的 ClientID 分隔符的字符值。 (继承自 Control) |
| Context |
已过时.
HttpContext获取与当前 Web 请求的服务器控件关联的对象。 (继承自 Control) |
| Controls |
已过时.
获取一个 ControlCollection 对象,该对象代表 UI 层次结构中指定服务器控件的子控件。 (继承自 Control) |
| DataItemContainer |
已过时.
获取对命名容器的引用(如果命名容器实现 IDataItemContainer)。 (继承自 Control) |
| DataKeysContainer |
已过时.
获取对命名容器的引用(如果命名容器实现 IDataKeysControl)。 (继承自 Control) |
| DesignMode |
已过时.
获取一个值,该值指示控件是否在设计图面上使用。 (继承自 Control) |
| EnableTheming |
已过时.
获取或设置一个布尔值,该值指示主题是否应用于派生自类的 TemplateControl 控件。 (继承自 TemplateControl) |
| EnableViewState |
已过时.
获取或设置一个值,该值指示服务器控件是否将视图状态及其包含的任何子控件的视图状态保存到请求客户端。 (继承自 Control) |
| Events |
已过时.
获取控件的事件处理程序委托的列表。 此属性为只读。 (继承自 Control) |
| HasChildViewState |
已过时.
获取一个值,该值指示当前服务器控件的子控件是否具有保存的视图状态设置。 (继承自 Control) |
| ID |
已过时.
获取或设置分配给服务器控件的编程标识符。 (继承自 Control) |
| IdSeparator |
已过时.
获取用于分隔控件标识符的字符。 (继承自 Control) |
| IsChildControlStateCleared |
已过时.
获取一个值,该值指示此控件中包含的控件是否具有控件状态。 (继承自 Control) |
| IsPostBack |
已过时.
获取一个值,该值指示用户控件是在响应客户端回发时加载的,还是首次加载和访问该控件。 (继承自 UserControl) |
| IsTrackingViewState |
已过时.
获取一个值,该值指示服务器控件是否正在保存对其视图状态的更改。 (继承自 Control) |
| IsViewStateEnabled |
已过时.
获取一个值,该值指示是否为此控件启用视图状态。 (继承自 Control) |
| LoadViewStateByID |
已过时.
获取一个值,该值指示控件是否参与加载其视图状态,而不是 ID 索引。 (继承自 Control) |
| NamingContainer |
已过时.
获取对服务器控件命名容器的引用,该容器创建唯一的命名空间,用于区分具有相同 ID 属性值的服务器控件。 (继承自 Control) |
| Page |
已过时.
获取对 Page 包含服务器控件的实例的引用。 (继承自 Control) |
| Parent |
已过时.
获取对页面控件层次结构中服务器控件的父控件的引用。 (继承自 Control) |
| RenderingCompatibility |
已过时.
获取一个值,该值指定呈现的 HTML 将与 ASP.NET 版本兼容。 (继承自 Control) |
| Request |
已过时.
HttpRequest获取当前 Web 请求的对象。 (继承自 UserControl) |
| Response |
已过时.
HttpResponse获取当前 Web 请求的对象。 (继承自 UserControl) |
| Server |
已过时.
HttpServerUtility获取当前 Web 请求的对象。 (继承自 UserControl) |
| Session |
已过时.
HttpSessionState获取当前 Web 请求的对象。 (继承自 UserControl) |
| Site |
已过时.
获取有关在设计图面上呈现时承载当前控件的容器的信息。 (继承自 Control) |
| SkinID |
已过时.
获取或设置要应用于控件的皮肤。 (继承自 Control) |
| SupportAutoEvents |
已过时.
获取一个值,该值指示控件是否 TemplateControl 支持自动事件。 (继承自 TemplateControl) |
| TemplateControl |
已过时.
获取或设置对包含此控件的模板的引用。 (继承自 Control) |
| TemplateSourceDirectory |
已过时.
获取包含当前服务器控件的 Page 虚拟 UserControl 目录。 (继承自 Control) |
| Trace |
已过时.
TraceContext获取当前 Web 请求的对象。 (继承自 UserControl) |
| UniqueID |
已过时.
获取服务器控件的唯一分层限定标识符。 (继承自 Control) |
| ValidateRequestMode |
已过时.
获取或设置一个值,该值指示控件是否检查浏览器的客户端输入是否存在潜在危险值。 (继承自 Control) |
| ViewState |
已过时.
获取状态信息的字典,该字典允许跨同一页的多个请求保存和还原服务器控件的视图状态。 (继承自 Control) |
| ViewStateIgnoresCase |
已过时.
获取一个值,该值指示对象是否 StateBag 不区分大小写。 (继承自 Control) |
| ViewStateMode |
已过时.
获取或设置此控件的视图状态模式。 (继承自 Control) |
| Visible |
已过时.
获取或设置一个值,该值指示服务器控件是否呈现为页面上的 UI。 (继承自 Control) |
方法
活动
| 名称 | 说明 |
|---|---|
| AbortTransaction |
已过时.
当用户结束事务时发生。 (继承自 TemplateControl) |
| CommitTransaction |
已过时.
事务完成时发生。 (继承自 TemplateControl) |
| DataBinding |
已过时.
当服务器控件绑定到数据源时发生。 (继承自 Control) |
| Disposed |
已过时.
在从内存中释放服务器控件时发生,这是请求 ASP.NET 页时服务器控件生命周期的最后阶段。 (继承自 Control) |
| Error |
已过时.
引发未经处理的异常时发生。 (继承自 TemplateControl) |
| Init |
已过时.
在初始化服务器控件时发生,这是其生命周期中的第一步。 (继承自 Control) |
| Load |
已过时.
在将服务器控件加载到对象中 Page 时发生。 (继承自 Control) |
| PreRender |
已过时.
在 Control 加载对象但在呈现之前发生。 (继承自 Control) |
| Unload |
已过时.
从内存中卸载服务器控件时发生。 (继承自 Control) |
显式接口实现
扩展方法
| 名称 | 说明 |
|---|---|
| EnableDynamicData(INamingContainer, Type, IDictionary<String,Object>) |
已过时.
为指定的数据控件启用动态数据行为。 |
| EnableDynamicData(INamingContainer, Type, Object) |
已过时.
为指定的数据控件启用动态数据行为。 |
| EnableDynamicData(INamingContainer, Type) |
已过时.
为指定的数据控件启用动态数据行为。 |
| FindDataSourceControl(Control) |
已过时.
返回与指定控件的数据控件关联的数据源。 |
| FindFieldTemplate(Control, String) |
已过时.
返回指定控件命名容器中指定列的字段模板。 |
| FindMetaTable(Control) |
已过时.
返回包含数据控件的元表对象。 |
| GetDefaultValues(INamingContainer) |
已过时.
获取指定数据控件的默认值的集合。 |
| GetMetaTable(INamingContainer) |
已过时.
获取指定数据控件的表元数据。 |
| SetMetaTable(INamingContainer, MetaTable, IDictionary<String,Object>) |
已过时.
设置指定数据控件的表元数据和默认值映射。 |
| SetMetaTable(INamingContainer, MetaTable, Object) |
已过时.
设置指定数据控件的表元数据和默认值映射。 |
| SetMetaTable(INamingContainer, MetaTable) |
已过时.
设置指定数据控件的表元数据。 |
| TryGetMetaTable(INamingContainer, MetaTable) |
已过时.
确定表元数据是否可用。 |