ControlAdapter.OnInit(EventArgs) 方法

定义

在初始化窗体或页面等对象后调用。Called after an object, such as a form or a page, is initialized. 此 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.

public:
 virtual void OnInit(EventArgs ^ e);
public virtual void OnInit (EventArgs e);
abstract member OnInit : EventArgs -> unit
override this.OnInit : EventArgs -> unit
Public Overridable Sub OnInit (e As EventArgs)

参数

e
EventArgs

包含事件数据的对象(由 EventArgs 定义)。An object (defined by EventArgs) that contains event data.

实现

注解

您可以重写此方法以设置设备特定的属性。You can override this method to set device-specific properties. 继承类可以重写此方法以执行其他任务。Inheriting classes can override this method to perform other tasks. 如果在继承类中重写此方法,则必须调用基实现。If this method is overridden in an inheriting class, you must call the base implementation.

适用于