MvcForm コンストラクター

定義

オーバーロード

MvcForm(HttpResponseBase)
古い.

指定した HTTP 応答オブジェクトを使用して、 MvcForm クラスの新しいインスタンスを初期化します。

MvcForm(ViewContext)

指定したビュー コンテキストを使用して、 MvcForm クラスの新しいインスタンスを初期化します。

MvcForm(HttpResponseBase)

注意事項

This constructor is obsolete, because its functionality has been moved to MvcForm(ViewContext) now.

指定した HTTP 応答オブジェクトを使用して、 MvcForm クラスの新しいインスタンスを初期化します。

[System.Obsolete("This constructor is obsolete, because its functionality has been moved to MvcForm(ViewContext) now.", true)]
public MvcForm (System.Web.HttpResponseBase httpResponse);
new System.Web.Mvc.Html.MvcForm : System.Web.HttpResponseBase -> System.Web.Mvc.Html.MvcForm
Public Sub New (httpResponse As HttpResponseBase)

パラメーター

httpResponse
HttpResponseBase

HTTP 応答オブジェクト。

属性

例外

パラメーターが httpResponse null です。

適用対象

MvcForm(ViewContext)

指定したビュー コンテキストを使用して、 MvcForm クラスの新しいインスタンスを初期化します。

public MvcForm (System.Web.Mvc.ViewContext viewContext);
new System.Web.Mvc.Html.MvcForm : System.Web.Mvc.ViewContext -> System.Web.Mvc.Html.MvcForm
Public Sub New (viewContext As ViewContext)

パラメーター

viewContext
ViewContext

ビューを表示するために必要な情報をカプセル化するオブジェクト。

例外

viewContext パラメーターが null です。

適用対象