FormMethod 列舉

定義

警告

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.

將表單的送出類型指定為 GET 或 POST 要求。 此類別無法獲得繼承。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

C#
public enum FormMethod
C#
[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 enum FormMethod
繼承
FormMethod
屬性

欄位

名稱 Description
Get 0

使用 GET 要求送出表單。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

Post 1

使用 POST 要求送出表單。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

備註

列舉 FormMethod 表示您提交表單的方式。 當表單的 屬性設定為 GetMethod,GET 要求會受限於可張貼的數據量。 使用 GET 要求時,某些類型的回傳可能會失敗。 使用 GET 要求的優點是,所有參數都會指定為 URL 的一部分,而且您可以快取或儲存 URL。

適用於

產品 版本 (已淘汰)
.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)