FormMethod 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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。
public enum class FormMethod
public enum FormMethod
[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
type FormMethod =
[<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.")>]
type FormMethod =
Public Enum 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 表示您提交表單的方式。 當表單的 屬性設定為 Get
時Method,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) |