IHtmlHelper<TModel>.DisplayNameForInnerType(Expression<Func<TModelItem,TResult>>) IHtmlHelper<TModel>.DisplayNameForInnerType(Expression<Func<TModelItem,TResult>>) IHtmlHelper<TModel>.DisplayNameForInnerType(Expression<Func<TModelItem,TResult>>) Method

Definition

Returns the display name for the specified expression if the current model represents a collection.

public string DisplayNameForInnerType<TModelItem,TResult> (System.Linq.Expressions.Expression<Func<TModelItem,TResult>> expression);
abstract member DisplayNameForInnerType : System.Linq.Expressions.Expression<Func<'ModelItem, 'Result>> -> string
Public Function DisplayNameForInnerType(Of TModelItem, TResult) (expression As Expression(Of Func(Of TModelItem, TResult))) As String

Type Parameters

TModelItem

The type of items in the model collection.

TResult

The type of the expression result.

Parameters

expression
Expression<Func<TModelItem,TResult>>

An expression to be evaluated against an item in the current model.

Returns

A String containing the display name.

Applies to