HtmlHelper<TModel>.DisplayNameForInnerType<TModelItem,TResult> 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.
Returns the display name for the specified expression
if the current model represents a collection.
public:
generic <typename TModelItem, typename TResult>
virtual System::String ^ DisplayNameForInnerType(System::Linq::Expressions::Expression<Func<TModelItem, TResult> ^> ^ expression);
public string DisplayNameForInnerType<TModelItem,TResult> (System.Linq.Expressions.Expression<Func<TModelItem,TResult>> expression);
abstract member DisplayNameForInnerType : System.Linq.Expressions.Expression<Func<'ModelItem, 'Result>> -> string
override this.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.
Implements
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: