共用方式為


HtmlHelper<TModel>.GetModelExplorer<TResult> 方法

定義

ModelExplorer取得 的 expression

protected:
generic <typename TResult>
 Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetModelExplorer(System::Linq::Expressions::Expression<Func<TModel, TResult> ^> ^ expression);
protected Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetModelExplorer<TResult> (System.Linq.Expressions.Expression<Func<TModel,TResult>> expression);
member this.GetModelExplorer : System.Linq.Expressions.Expression<Func<'Model, 'Result>> -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Protected Function GetModelExplorer(Of TResult) (expression As Expression(Of Func(Of TModel, TResult))) As ModelExplorer

類型參數

TResult

結果的類型。

參數

expression
Expression<Func<TModel,TResult>>

運算式。

傳回

ModelExplorer

適用於