다음을 통해 공유


HtmlHelper.GenerateDropDown 메서드

정의

드롭다운을 생성합니다.

protected:
 Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateDropDown(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Rendering::SelectListItem ^> ^ selectList, System::String ^ optionLabel, System::Object ^ htmlAttributes);
protected Microsoft.AspNetCore.Html.IHtmlContent GenerateDropDown (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> selectList, string optionLabel, object htmlAttributes);
member this.GenerateDropDown : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * seq<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Protected Function GenerateDropDown (modelExplorer As ModelExplorer, expression As String, selectList As IEnumerable(Of SelectListItem), optionLabel As String, htmlAttributes As Object) As IHtmlContent

매개 변수

expression
String

식입니다.

selectList
IEnumerable<SelectListItem>

선택 목록입니다.

optionLabel
String

옵션 레이블입니다.

htmlAttributes
Object

Object 요소에 대한 HTML 특성을 포함하는 입니다. IDictionary<TKey,TValue> 또는 HTML 특성을 포함하는 instance.

반환

IHtmlContent

적용 대상