IControlAdapter.OnInit(EventArgs) IControlAdapter.OnInit(EventArgs) IControlAdapter.OnInit(EventArgs) IControlAdapter.OnInit(EventArgs) Method

定义

在初始化窗体或页面等对象后调用。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.

public:
 void OnInit(EventArgs ^ e);
public void OnInit (EventArgs e);
abstract member OnInit : EventArgs -> unit
Public Sub OnInit (e As EventArgs)

参数

e
EventArgs EventArgs EventArgs 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.

适用于

另请参阅