Skip to content

Pact Web Extensions HtmlHelperExtensions DescriptionFor TModel TValue (Microsoft AspNetCore Mvc Rendering IHtmlHelper TModel System Linq Expressions Expression System Func TModel TValue )

welshronaldo edited this page May 30, 2022 · 6 revisions

HtmlHelperExtensions.DescriptionFor<TModel,TValue>(IHtmlHelper<TModel>, Expression<Func<TModel,TValue>>) Method

Similar to IdFor etc., just using display attribute for description

public static string DescriptionFor<TModel,TValue>(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel> html, System.Linq.Expressions.Expression<System.Func<TModel,TValue>> expression);

Type parameters

TModel

TValue

Parameters

html Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>

expression System.Linq.Expressions.Expression<System.Func<TModel,TValue>>

Returns

System.String

Clone this wiki locally