SelectExtensions.DropDownListFor メソッド

定義

オーバーロード

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, String, IDictionary<String, Object>)

指定したリスト アイテム、オプション ラベル、および HTML 属性を使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>, String)

指定したリスト アイテムとオプション ラベルを使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>, String, Object)

指定したリスト アイテム、オプション ラベル、および HTML 属性を使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>, IDictionary<String,Object>)

指定したリスト アイテムと HTML 属性を使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>)

指定したリスト アイテムを使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>, Object)

指定したリスト アイテムと HTML 属性を使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, String, IDictionary<String, Object>)

指定したリスト アイテム、オプション ラベル、および HTML 属性を使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

public static System.Web.Mvc.MvcHtmlString DropDownListFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> selectList, string optionLabel, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member DropDownListFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * seq<System.Web.Mvc.SelectListItem> * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DropDownListFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), selectList As IEnumerable(Of SelectListItem), optionLabel As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

型パラメーター

TModel

モデルの型。

TProperty

値の型。

パラメーター

htmlHelper
HtmlHelper<TModel>

このメソッドによって拡張される HTML ヘルパー インスタンス。

expression
Expression<Func<TModel,TProperty>>

表示するプロパティを格納しているオブジェクトを識別する式。

selectList
IEnumerable<SelectListItem>

ドロップダウン リストの SelectListItem 設定に使用されるオブジェクトのコレクション。

optionLabel
String

既定の空の項目のテキスト。 このパラメーターには、null を指定できます。

htmlAttributes
IDictionary<String,Object>

要素に設定する HTML 属性を含む オブジェクト。

戻り値

式で表されるオブジェクト内の各プロパティの HTML select 要素。

例外

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

適用対象

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>, String)

指定したリスト アイテムとオプション ラベルを使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

public static System.Web.Mvc.MvcHtmlString DropDownListFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> selectList, string optionLabel);
static member DropDownListFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * seq<System.Web.Mvc.SelectListItem> * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DropDownListFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), selectList As IEnumerable(Of SelectListItem), optionLabel As String) As MvcHtmlString

型パラメーター

TModel

モデルの型。

TProperty

値の型。

パラメーター

htmlHelper
HtmlHelper<TModel>

このメソッドによって拡張される HTML ヘルパー インスタンス。

expression
Expression<Func<TModel,TProperty>>

表示するプロパティを格納しているオブジェクトを識別する式。

selectList
IEnumerable<SelectListItem>

ドロップダウン リストの SelectListItem 設定に使用されるオブジェクトのコレクション。

optionLabel
String

既定の空の項目のテキスト。 このパラメーターには、null を指定できます。

戻り値

式で表されるオブジェクト内の各プロパティの HTML select 要素。

例外

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

適用対象

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>, String, Object)

指定したリスト アイテム、オプション ラベル、および HTML 属性を使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

public static System.Web.Mvc.MvcHtmlString DropDownListFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> selectList, string optionLabel, object htmlAttributes);
static member DropDownListFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * seq<System.Web.Mvc.SelectListItem> * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DropDownListFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), selectList As IEnumerable(Of SelectListItem), optionLabel As String, htmlAttributes As Object) As MvcHtmlString

型パラメーター

TModel

モデルの型。

TProperty

値の型。

パラメーター

htmlHelper
HtmlHelper<TModel>

このメソッドによって拡張される HTML ヘルパー インスタンス。

expression
Expression<Func<TModel,TProperty>>

表示するプロパティを格納しているオブジェクトを識別する式。

selectList
IEnumerable<SelectListItem>

ドロップダウン リストの SelectListItem 設定に使用されるオブジェクトのコレクション。

optionLabel
String

既定の空の項目のテキスト。 このパラメーターには、null を指定できます。

htmlAttributes
Object

要素に設定する HTML 属性を含む オブジェクト。

戻り値

式で表されるオブジェクト内の各プロパティの HTML select 要素。

例外

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

適用対象

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>, IDictionary<String,Object>)

指定したリスト アイテムと HTML 属性を使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

public static System.Web.Mvc.MvcHtmlString DropDownListFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> selectList, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member DropDownListFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * seq<System.Web.Mvc.SelectListItem> * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DropDownListFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), selectList As IEnumerable(Of SelectListItem), htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

型パラメーター

TModel

モデルの型。

TProperty

値の型。

パラメーター

htmlHelper
HtmlHelper<TModel>

このメソッドによって拡張される HTML ヘルパー インスタンス。

expression
Expression<Func<TModel,TProperty>>

表示するプロパティを格納しているオブジェクトを識別する式。

selectList
IEnumerable<SelectListItem>

ドロップダウン リストの SelectListItem 設定に使用されるオブジェクトのコレクション。

htmlAttributes
IDictionary<String,Object>

要素に設定する HTML 属性を含む オブジェクト。

戻り値

式で表されるオブジェクト内の各プロパティの HTML select 要素。

例外

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

適用対象

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>)

指定したリスト アイテムを使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

public static System.Web.Mvc.MvcHtmlString DropDownListFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> selectList);
static member DropDownListFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * seq<System.Web.Mvc.SelectListItem> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DropDownListFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), selectList As IEnumerable(Of SelectListItem)) As MvcHtmlString

型パラメーター

TModel

モデルの型。

TProperty

値の型。

パラメーター

htmlHelper
HtmlHelper<TModel>

このメソッドによって拡張される HTML ヘルパー インスタンス。

expression
Expression<Func<TModel,TProperty>>

表示するプロパティを格納しているオブジェクトを識別する式。

selectList
IEnumerable<SelectListItem>

ドロップダウン リストの SelectListItem 設定に使用されるオブジェクトのコレクション。

戻り値

式で表されるオブジェクト内の各プロパティの HTML select 要素。

例外

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

適用対象

DropDownListFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IEnumerable<SelectListItem>, Object)

指定したリスト アイテムと HTML 属性を使用して、指定した式で表されるオブジェクト内の各プロパティの HTML select 要素を返します。

public static System.Web.Mvc.MvcHtmlString DropDownListFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> selectList, object htmlAttributes);
static member DropDownListFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * seq<System.Web.Mvc.SelectListItem> * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DropDownListFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), selectList As IEnumerable(Of SelectListItem), htmlAttributes As Object) As MvcHtmlString

型パラメーター

TModel

モデルの型。

TProperty

値の型。

パラメーター

htmlHelper
HtmlHelper<TModel>

このメソッドによって拡張される HTML ヘルパー インスタンス。

expression
Expression<Func<TModel,TProperty>>

表示するプロパティを格納しているオブジェクトを識別する式。

selectList
IEnumerable<SelectListItem>

ドロップダウン リストの SelectListItem 設定に使用されるオブジェクトのコレクション。

htmlAttributes
Object

要素に設定する HTML 属性を含む オブジェクト。

戻り値

式で表されるオブジェクト内の各プロパティの HTML select 要素。

例外

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

適用対象