SelectListItem Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SelectListItem() |
Initializes a new instance of SelectListItem. |
SelectListItem(String, String) |
Initializes a new instance of SelectListItem. |
SelectListItem(String, String, Boolean) |
Initializes a new instance of SelectListItem. |
SelectListItem(String, String, Boolean, Boolean) |
Initializes a new instance of SelectListItem. |
SelectListItem()
- Source:
- SelectListItem.cs
- Source:
- SelectListItem.cs
- Source:
- SelectListItem.cs
Initializes a new instance of SelectListItem.
public:
SelectListItem();
public SelectListItem ();
Public Sub New ()
Applies to
SelectListItem(String, String)
- Source:
- SelectListItem.cs
- Source:
- SelectListItem.cs
- Source:
- SelectListItem.cs
Initializes a new instance of SelectListItem.
public:
SelectListItem(System::String ^ text, System::String ^ value);
public SelectListItem (string text, string value);
new Microsoft.AspNetCore.Mvc.Rendering.SelectListItem : string * string -> Microsoft.AspNetCore.Mvc.Rendering.SelectListItem
Public Sub New (text As String, value As String)
Parameters
- text
- String
The display text of this SelectListItem.
- value
- String
The value of this SelectListItem.
Applies to
SelectListItem(String, String, Boolean)
- Source:
- SelectListItem.cs
- Source:
- SelectListItem.cs
- Source:
- SelectListItem.cs
Initializes a new instance of SelectListItem.
public:
SelectListItem(System::String ^ text, System::String ^ value, bool selected);
public SelectListItem (string text, string value, bool selected);
new Microsoft.AspNetCore.Mvc.Rendering.SelectListItem : string * string * bool -> Microsoft.AspNetCore.Mvc.Rendering.SelectListItem
Public Sub New (text As String, value As String, selected As Boolean)
Parameters
- text
- String
The display text of this SelectListItem.
- value
- String
The value of this SelectListItem.
- selected
- Boolean
Value that indicates whether this SelectListItem is selected.
Applies to
SelectListItem(String, String, Boolean, Boolean)
- Source:
- SelectListItem.cs
- Source:
- SelectListItem.cs
- Source:
- SelectListItem.cs
Initializes a new instance of SelectListItem.
public:
SelectListItem(System::String ^ text, System::String ^ value, bool selected, bool disabled);
public SelectListItem (string text, string value, bool selected, bool disabled);
new Microsoft.AspNetCore.Mvc.Rendering.SelectListItem : string * string * bool * bool -> Microsoft.AspNetCore.Mvc.Rendering.SelectListItem
Public Sub New (text As String, value As String, selected As Boolean, disabled As Boolean)
Parameters
- text
- String
The display text of this SelectListItem.
- value
- String
The value of this SelectListItem.
- selected
- Boolean
Value that indicates whether this SelectListItem is selected.
- disabled
- Boolean
Value that indicates whether this SelectListItem is disabled.