EditorExtensions.EditorForModel Method
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
EditorForModel(HtmlHelper) |
Returns an HTML input element for each property in the model. |
EditorForModel(HtmlHelper, Object) |
Returns an HTML input element for each property in the model, using additional view data. |
EditorForModel(HtmlHelper, String) |
Returns an HTML input element for each property in the model, using the specified template. |
EditorForModel(HtmlHelper, String, Object) |
Returns an HTML input element for each property in the model, using the specified template and additional view data. |
EditorForModel(HtmlHelper, String, String) |
Returns an HTML input element for each property in the model, using the specified template name and HTML field name. |
EditorForModel(HtmlHelper, String, String, Object) |
Returns an HTML input element for each property in the model, using the template name, HTML field name, and additional view data. |
EditorForModel(HtmlHelper)
Returns an HTML input element for each property in the model.
public static System.Web.Mvc.MvcHtmlString EditorForModel (this System.Web.Mvc.HtmlHelper html);
static member EditorForModel : System.Web.Mvc.HtmlHelper -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function EditorForModel (html As HtmlHelper) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
Returns
An HTML input element for each property in the model.
Applies to
EditorForModel(HtmlHelper, Object)
Returns an HTML input element for each property in the model, using additional view data.
public static System.Web.Mvc.MvcHtmlString EditorForModel (this System.Web.Mvc.HtmlHelper html, object additionalViewData);
static member EditorForModel : System.Web.Mvc.HtmlHelper * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function EditorForModel (html As HtmlHelper, additionalViewData As Object) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
- additionalViewData
- Object
An anonymous object that can contain additional view data that will be merged into the ViewDataDictionary<TModel> instance that is created for the template.
Returns
An HTML input element for each property in the model.
Applies to
EditorForModel(HtmlHelper, String)
Returns an HTML input element for each property in the model, using the specified template.
public static System.Web.Mvc.MvcHtmlString EditorForModel (this System.Web.Mvc.HtmlHelper html, string templateName);
static member EditorForModel : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function EditorForModel (html As HtmlHelper, templateName As String) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
- templateName
- String
The name of the template to use to render the object.
Returns
An HTML input element for each property in the model and in the specified template.
Applies to
EditorForModel(HtmlHelper, String, Object)
Returns an HTML input element for each property in the model, using the specified template and additional view data.
public static System.Web.Mvc.MvcHtmlString EditorForModel (this System.Web.Mvc.HtmlHelper html, string templateName, object additionalViewData);
static member EditorForModel : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function EditorForModel (html As HtmlHelper, templateName As String, additionalViewData As Object) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
- templateName
- String
The name of the template to use to render the object.
- additionalViewData
- Object
An anonymous object that can contain additional view data that will be merged into the ViewDataDictionary<TModel> instance that is created for the template.
Returns
An HTML input element for each property in the model.
Applies to
EditorForModel(HtmlHelper, String, String)
Returns an HTML input element for each property in the model, using the specified template name and HTML field name.
public static System.Web.Mvc.MvcHtmlString EditorForModel (this System.Web.Mvc.HtmlHelper html, string templateName, string htmlFieldName);
static member EditorForModel : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function EditorForModel (html As HtmlHelper, templateName As String, htmlFieldName As String) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
- templateName
- String
The name of the template to use to render the object.
- htmlFieldName
- String
A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.
Returns
An HTML input element for each property in the model and in the named template.
Applies to
EditorForModel(HtmlHelper, String, String, Object)
Returns an HTML input element for each property in the model, using the template name, HTML field name, and additional view data.
public static System.Web.Mvc.MvcHtmlString EditorForModel (this System.Web.Mvc.HtmlHelper html, string templateName, string htmlFieldName, object additionalViewData);
static member EditorForModel : System.Web.Mvc.HtmlHelper * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function EditorForModel (html As HtmlHelper, templateName As String, htmlFieldName As String, additionalViewData As Object) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
- templateName
- String
The name of the template to use to render the object.
- htmlFieldName
- String
A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.
- additionalViewData
- Object
An anonymous object that can contain additional view data that will be merged into the ViewDataDictionary<TModel> instance that is created for the template.
Returns
An HTML input element for each property in the model.