使用英语阅读

通过


MobilePage.AddedControl(Control, Int32) 方法

定义

在控件添加到 Controls 集合后调用。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

C#
protected override void AddedControl(System.Web.UI.Control control, int index);

参数

control
Control

已添加的 MobileControl

index
Int32

Controls 集合中的控件索引。

注解

此成员重写 方法, Control.AddedControl 以确定控件在调用基方法之前是 Form 还是 UserControl 。 如果控件是 FormUserControl 对象,则 Forms 属性设置为 null

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

另请参阅