ModelExpression Class¶
Describes an System.Linq.Expressions.Expression
passed to a tag helper.
- Namespace
Microsoft.AspNetCore.Mvc.ViewFeatures
- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Syntax¶
public sealed class ModelExpression
-
class
Microsoft.AspNetCore.Mvc.ViewFeatures.
ModelExpression
Constructors¶
-
ModelExpression
(System.String, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)¶ Initializes a new instance of the
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression
class.Arguments: - name (System.String) – String representation of the
System.Linq.Expressions.Expression
of interest. - modelExplorer (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer) – Includes the model and metadata about the
System.Linq.Expressions.Expression
of interest.
public ModelExpression(string name, ModelExplorer modelExplorer)
- name (System.String) – String representation of the
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression.
Metadata
¶ Metadata about the
System.Linq.Expressions.Expression
of interest.Return type: Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata public ModelMetadata Metadata { get; }
-
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression.
Model
¶ Gets the model object for the
System.Linq.Expressions.Expression
of interest.Return type: System.Object public object Model { get; }
-
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression.
ModelExplorer
¶ Gets the model explorer for the
System.Linq.Expressions.Expression
of interest.Return type: Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer public ModelExplorer ModelExplorer { get; }
-
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression.
Name
¶ String representation of the
System.Linq.Expressions.Expression
of interest.Return type: System.String public string Name { get; }
-