MobilePage.GetForm(String) 方法

定义

返回 ID 参数指定的窗体对象。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public:
 System::Web::UI::MobileControls::Form ^ GetForm(System::String ^ id);
public System.Web.UI.MobileControls.Form GetForm(string id);
member this.GetForm : string -> System.Web.UI.MobileControls.Form
Public Function GetForm (id As String) As Form

参数

id
String

要返回的窗体的标识符。

返回

指定的窗体对象。 如果不存在此类形式, GetForm(String) 则引发异常。

例外

找不到请求的表单。

注解

每个窗体都有一个与之关联的字符串标识号。 在页面上提供窗体的 ID 时,此方法返回相应的 Form 对象。

适用于

另请参阅