Bagikan melalui


SelectExtensions.DropDownListFor Metode

Definisi

Overload

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

Mengembalikan elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar, label opsi, dan atribut HTML yang ditentukan.

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

Mengembalikan elemen pilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar dan label opsi yang ditentukan.

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

Mengembalikan elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar, label opsi, dan atribut HTML yang ditentukan.

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

Mengembalikan elemen pilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar dan atribut HTML yang ditentukan.

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

Mengembalikan elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar yang ditentukan.

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

Mengembalikan elemen pilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar dan atribut HTML yang ditentukan.

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

Mengembalikan elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar, label opsi, dan atribut HTML yang ditentukan.

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

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

selectList
IEnumerable<SelectListItem>

Kumpulan SelectListItem objek yang digunakan untuk mengisi daftar drop-down.

optionLabel
String

Teks untuk item kosong default. Parameter ini dapat berupa null.

htmlAttributes
IDictionary<String,Object>

Objek yang berisi atribut HTML yang akan diatur untuk elemen .

Mengembalikan

Elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameternya expression null.

Berlaku untuk

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

Mengembalikan elemen pilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar dan label opsi yang ditentukan.

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

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

selectList
IEnumerable<SelectListItem>

Kumpulan SelectListItem objek yang digunakan untuk mengisi daftar drop-down.

optionLabel
String

Teks untuk item kosong default. Parameter ini dapat berupa null.

Mengembalikan

Elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameternya expression null.

Berlaku untuk

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

Mengembalikan elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar, label opsi, dan atribut HTML yang ditentukan.

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

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

selectList
IEnumerable<SelectListItem>

Kumpulan SelectListItem objek yang digunakan untuk mengisi daftar drop-down.

optionLabel
String

Teks untuk item kosong default. Parameter ini dapat berupa null.

htmlAttributes
Object

Objek yang berisi atribut HTML yang akan diatur untuk elemen .

Mengembalikan

Elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameternya expression null.

Berlaku untuk

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

Mengembalikan elemen pilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar dan atribut HTML yang ditentukan.

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

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

selectList
IEnumerable<SelectListItem>

Kumpulan SelectListItem objek yang digunakan untuk mengisi daftar drop-down.

htmlAttributes
IDictionary<String,Object>

Objek yang berisi atribut HTML yang akan diatur untuk elemen .

Mengembalikan

Elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameternya expression null.

Berlaku untuk

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

Mengembalikan elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar yang ditentukan.

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

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

selectList
IEnumerable<SelectListItem>

Kumpulan SelectListItem objek yang digunakan untuk mengisi daftar drop-down.

Mengembalikan

Elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameternya expression null.

Berlaku untuk

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

Mengembalikan elemen pilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan menggunakan item daftar dan atribut HTML yang ditentukan.

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

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

selectList
IEnumerable<SelectListItem>

Kumpulan SelectListItem objek yang digunakan untuk mengisi daftar drop-down.

htmlAttributes
Object

Objek yang berisi atribut HTML yang akan diatur untuk elemen .

Mengembalikan

Elemen pemilih HTML untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameternya expression null.

Berlaku untuk