Dela via


MultiSelectList Constructors

Definition

Overloads

MultiSelectList(IEnumerable)

Initialize a new instance of MultiSelectList.

MultiSelectList(IEnumerable, IEnumerable)

Initialize a new instance of MultiSelectList.

MultiSelectList(IEnumerable, String, String)

Initialize a new instance of MultiSelectList.

MultiSelectList(IEnumerable, String, String, IEnumerable)

Initialize a new instance of MultiSelectList.

MultiSelectList(IEnumerable, String, String, IEnumerable, String)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the selected values, and the data group field.

MultiSelectList(IEnumerable)

Source:
MultiSelectList.cs
Source:
MultiSelectList.cs
Source:
MultiSelectList.cs

Initialize a new instance of MultiSelectList.

public:
 MultiSelectList(System::Collections::IEnumerable ^ items);
public MultiSelectList (System.Collections.IEnumerable items);
new Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList : System.Collections.IEnumerable -> Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList
Public Sub New (items As IEnumerable)

Parameters

items
IEnumerable

The items.

Applies to

MultiSelectList(IEnumerable, IEnumerable)

Source:
MultiSelectList.cs
Source:
MultiSelectList.cs
Source:
MultiSelectList.cs

Initialize a new instance of MultiSelectList.

public:
 MultiSelectList(System::Collections::IEnumerable ^ items, System::Collections::IEnumerable ^ selectedValues);
public MultiSelectList (System.Collections.IEnumerable items, System.Collections.IEnumerable selectedValues);
new Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList : System.Collections.IEnumerable * System.Collections.IEnumerable -> Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList
Public Sub New (items As IEnumerable, selectedValues As IEnumerable)

Parameters

items
IEnumerable

The items.

selectedValues
IEnumerable

The selected values.

Applies to

MultiSelectList(IEnumerable, String, String)

Source:
MultiSelectList.cs
Source:
MultiSelectList.cs
Source:
MultiSelectList.cs

Initialize a new instance of MultiSelectList.

public:
 MultiSelectList(System::Collections::IEnumerable ^ items, System::String ^ dataValueField, System::String ^ dataTextField);
public MultiSelectList (System.Collections.IEnumerable items, string dataValueField, string dataTextField);
new Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList : System.Collections.IEnumerable * string * string -> Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String)

Parameters

items
IEnumerable

The items.

dataValueField
String

The data value field.

dataTextField
String

The data text field.

Applies to

MultiSelectList(IEnumerable, String, String, IEnumerable)

Source:
MultiSelectList.cs
Source:
MultiSelectList.cs
Source:
MultiSelectList.cs

Initialize a new instance of MultiSelectList.

public:
 MultiSelectList(System::Collections::IEnumerable ^ items, System::String ^ dataValueField, System::String ^ dataTextField, System::Collections::IEnumerable ^ selectedValues);
public MultiSelectList (System.Collections.IEnumerable items, string dataValueField, string dataTextField, System.Collections.IEnumerable selectedValues);
new Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList : System.Collections.IEnumerable * string * string * System.Collections.IEnumerable -> Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String, selectedValues As IEnumerable)

Parameters

items
IEnumerable

The items.

dataValueField
String

The data value field.

dataTextField
String

The data text field.

selectedValues
IEnumerable

The selected values.

Applies to

MultiSelectList(IEnumerable, String, String, IEnumerable, String)

Source:
MultiSelectList.cs
Source:
MultiSelectList.cs
Source:
MultiSelectList.cs

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the selected values, and the data group field.

public:
 MultiSelectList(System::Collections::IEnumerable ^ items, System::String ^ dataValueField, System::String ^ dataTextField, System::Collections::IEnumerable ^ selectedValues, System::String ^ dataGroupField);
public MultiSelectList (System.Collections.IEnumerable items, string dataValueField, string dataTextField, System.Collections.IEnumerable selectedValues, string dataGroupField);
new Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList : System.Collections.IEnumerable * string * string * System.Collections.IEnumerable * string -> Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String, selectedValues As IEnumerable, dataGroupField As String)

Parameters

items
IEnumerable

The items used to build each SelectListItem of the list.

dataValueField
String

The data value field. Used to match the Value property of the corresponding SelectListItem.

dataTextField
String

The data text field. Used to match the Text property of the corresponding SelectListItem.

selectedValues
IEnumerable

The selected values field. Used to match the Selected property of the corresponding SelectListItem.

dataGroupField
String

The data group field. Used to match the Group property of the corresponding SelectListItem.

Applies to