英語で読む

次の方法で共有


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
属性

フィールド

名前 説明
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 、フォームを送信する方法を表します。 フォームの プロパティが MethodGet設定されている場合、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)