다음을 통해 공유


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인 경우

적용 대상