SelectExtensions.DropDownListFor Método

Definición

Sobrecargas

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista, la etiqueta de opción y los atributos HTML especificados.

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista y la etiqueta de opciones especificados.

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista, la etiqueta de opción y los atributos HTML especificados.

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista y los atributos HTML especificados.

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

Devuelve un elemento select HTML para cada propiedad en el objeto representado por la expresión especificada, mediante los elementos de la lista especificados.

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista y los atributos HTML especificados.

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista, la etiqueta de opción y los atributos HTML especificados.

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

Parámetros de tipo

TModel

Tipo del modelo.

TProperty

Tipo del valor.

Parámetros

htmlHelper
HtmlHelper<TModel>

Instancia del asistente HTML que extiende este método.

expression
Expression<Func<TModel,TProperty>>

Expresión que identifica el objeto que contiene las propiedades que se van a mostrar.

selectList
IEnumerable<SelectListItem>

Colección de SelectListItem objetos que se usan para rellenar la lista desplegable.

optionLabel
String

Texto para un elemento vacío predeterminado. Este parámetro puede ser NULL.

htmlAttributes
IDictionary<String,Object>

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento de selección HTML para cada propiedad en el objeto representado por la expresión.

Excepciones

El parámetro expression es null.

Se aplica a

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista y la etiqueta de opciones especificados.

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

Parámetros de tipo

TModel

Tipo del modelo.

TProperty

Tipo del valor.

Parámetros

htmlHelper
HtmlHelper<TModel>

Instancia del asistente HTML que extiende este método.

expression
Expression<Func<TModel,TProperty>>

Expresión que identifica el objeto que contiene las propiedades que se van a mostrar.

selectList
IEnumerable<SelectListItem>

Colección de SelectListItem objetos que se usan para rellenar la lista desplegable.

optionLabel
String

Texto para un elemento vacío predeterminado. Este parámetro puede ser NULL.

Devoluciones

Un elemento de selección HTML para cada propiedad en el objeto representado por la expresión.

Excepciones

El parámetro expression es null.

Se aplica a

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista, la etiqueta de opción y los atributos HTML especificados.

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

Parámetros de tipo

TModel

Tipo del modelo.

TProperty

Tipo del valor.

Parámetros

htmlHelper
HtmlHelper<TModel>

Instancia del asistente HTML que extiende este método.

expression
Expression<Func<TModel,TProperty>>

Expresión que identifica el objeto que contiene las propiedades que se van a mostrar.

selectList
IEnumerable<SelectListItem>

Colección de SelectListItem objetos que se usan para rellenar la lista desplegable.

optionLabel
String

Texto para un elemento vacío predeterminado. Este parámetro puede ser NULL.

htmlAttributes
Object

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento de selección HTML para cada propiedad en el objeto representado por la expresión.

Excepciones

El parámetro expression es null.

Se aplica a

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista y los atributos HTML especificados.

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

Parámetros de tipo

TModel

Tipo del modelo.

TProperty

Tipo del valor.

Parámetros

htmlHelper
HtmlHelper<TModel>

Instancia del asistente HTML que extiende este método.

expression
Expression<Func<TModel,TProperty>>

Expresión que identifica el objeto que contiene las propiedades que se van a mostrar.

selectList
IEnumerable<SelectListItem>

Colección de SelectListItem objetos que se usan para rellenar la lista desplegable.

htmlAttributes
IDictionary<String,Object>

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento de selección HTML para cada propiedad en el objeto representado por la expresión.

Excepciones

El parámetro expression es null.

Se aplica a

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

Devuelve un elemento select HTML para cada propiedad en el objeto representado por la expresión especificada, mediante los elementos de la lista especificados.

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

Parámetros de tipo

TModel

Tipo del modelo.

TProperty

Tipo del valor.

Parámetros

htmlHelper
HtmlHelper<TModel>

Instancia del asistente HTML que extiende este método.

expression
Expression<Func<TModel,TProperty>>

Expresión que identifica el objeto que contiene las propiedades que se van a mostrar.

selectList
IEnumerable<SelectListItem>

Colección de SelectListItem objetos que se usan para rellenar la lista desplegable.

Devoluciones

Un elemento de selección HTML para cada propiedad en el objeto representado por la expresión.

Excepciones

El parámetro expression es null.

Se aplica a

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

Devuelve un elemento select HTML para cada propiedad del objeto representada por la expresión especificada, mediante los elementos de la lista y los atributos HTML especificados.

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

Parámetros de tipo

TModel

Tipo del modelo.

TProperty

Tipo del valor.

Parámetros

htmlHelper
HtmlHelper<TModel>

Instancia del asistente HTML que extiende este método.

expression
Expression<Func<TModel,TProperty>>

Expresión que identifica el objeto que contiene las propiedades que se van a mostrar.

selectList
IEnumerable<SelectListItem>

Colección de SelectListItem objetos que se usan para rellenar la lista desplegable.

htmlAttributes
Object

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento de selección HTML para cada propiedad en el objeto representado por la expresión.

Excepciones

El parámetro expression es null.

Se aplica a