Share via


DisplayExtensions.Display Method

Definition

Overloads

Display(HtmlHelper, String)

Returns HTML markup for each property in the object that is represented by a string expression.

Display(HtmlHelper, String, Object)

Returns HTML markup for each property in the object that is represented by a string expression, using additional view data.

Display(HtmlHelper, String, String)

Returns HTML markup for each property in the object that is represented by the expression, using the specified template.

Display(HtmlHelper, String, String, Object)

Returns HTML markup for each property in the object that is represented by the expression, using the specified template and additional view data.

Display(HtmlHelper, String, String, String)

Returns HTML markup for each property in the object that is represented by the expression, using the specified template and an HTML field ID.

Display(HtmlHelper, String, String, String, Object)

Returns HTML markup for each property in the object that is represented by the expression, using the specified template, HTML field ID, and additional view data.

Display(HtmlHelper, String)

Returns HTML markup for each property in the object that is represented by a string expression.

public static System.Web.Mvc.MvcHtmlString Display (this System.Web.Mvc.HtmlHelper html, string expression);
static member Display : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Display (html As HtmlHelper, expression As String) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

An expression that identifies the object that contains the properties to display.

Returns

The HTML markup for each property in the object that is represented by the expression.

Applies to

Display(HtmlHelper, String, Object)

Returns HTML markup for each property in the object that is represented by a string expression, using additional view data.

public static System.Web.Mvc.MvcHtmlString Display (this System.Web.Mvc.HtmlHelper html, string expression, object additionalViewData);
static member Display : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Display (html As HtmlHelper, expression As String, additionalViewData As Object) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

An expression that identifies the object that contains the properties to display.

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

The HTML markup for each property in the object that is represented by the expression.

Applies to

Display(HtmlHelper, String, String)

Returns HTML markup for each property in the object that is represented by the expression, using the specified template.

public static System.Web.Mvc.MvcHtmlString Display (this System.Web.Mvc.HtmlHelper html, string expression, string templateName);
static member Display : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Display (html As HtmlHelper, expression As String, templateName As String) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

An expression that identifies the object that contains the properties to display.

templateName
String

The name of the template that is used to render the object.

Returns

The HTML markup for each property in the object that is represented by the expression.

Applies to

Display(HtmlHelper, String, String, Object)

Returns HTML markup for each property in the object that is represented by the expression, using the specified template and additional view data.

public static System.Web.Mvc.MvcHtmlString Display (this System.Web.Mvc.HtmlHelper html, string expression, string templateName, object additionalViewData);
static member Display : System.Web.Mvc.HtmlHelper * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Display (html As HtmlHelper, expression As String, templateName As String, additionalViewData As Object) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

An expression that identifies the object that contains the properties to display.

templateName
String

The name of the template that is used 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

The HTML markup for each property in the object that is represented by the expression.

Applies to

Display(HtmlHelper, String, String, String)

Returns HTML markup for each property in the object that is represented by the expression, using the specified template and an HTML field ID.

public static System.Web.Mvc.MvcHtmlString Display (this System.Web.Mvc.HtmlHelper html, string expression, string templateName, string htmlFieldName);
static member Display : System.Web.Mvc.HtmlHelper * string * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Display (html As HtmlHelper, expression As String, templateName As String, htmlFieldName As String) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

An expression that identifies the object that contains the properties to display.

templateName
String

The name of the template that is used 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

The HTML markup for each property in the object that is represented by the expression.

Applies to

Display(HtmlHelper, String, String, String, Object)

Returns HTML markup for each property in the object that is represented by the expression, using the specified template, HTML field ID, and additional view data.

public static System.Web.Mvc.MvcHtmlString Display (this System.Web.Mvc.HtmlHelper html, string expression, string templateName, string htmlFieldName, object additionalViewData);
static member Display : System.Web.Mvc.HtmlHelper * string * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Display (html As HtmlHelper, expression As String, templateName As String, htmlFieldName As String, additionalViewData As Object) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

An expression that identifies the object that contains the properties to display.

templateName
String

The name of the template that is used 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

The HTML markup for each property in the object that is represented by the expression.

Applies to