HtmlHelperExtensions.DisplayForModel Method (HtmlHelper, String, String)

 

Namespace:   Microsoft.Web.Mvc.Html
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

public static MvcHtmlString DisplayForModel(
    this HtmlHelper htmlHelper,
    string templateName = null,
    string htmlFieldName = null
)
public:
[ExtensionAttribute]
static MvcHtmlString^ DisplayForModel(
    HtmlHelper^ htmlHelper,
    String^ templateName = null,
    String^ htmlFieldName = null
)
static member DisplayForModel : 
        htmlHelper:HtmlHelper *
        templateName:string = null *
        htmlFieldName:string = null -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function DisplayForModel (
    htmlHelper As HtmlHelper,
    templateName As String,
    htmlFieldName As String
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

See Also

HtmlHelperExtensions Class
Microsoft.Web.Mvc.Html Namespace

Return to top