SaaS CMS has officially launched! Learn more now.

Class ExpressionPropertyDescriptor

Describes a property that has been created from an expression.

Inheritance
System.Object
ExpressionPropertyDescriptor
Implements
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public class ExpressionPropertyDescriptor : Object, IPropertyDescriptor

Constructors

ExpressionPropertyDescriptor(ModelExpression, String)

Creates a new instance of ExpressionPropertyDescriptor.

Declaration
public ExpressionPropertyDescriptor(ModelExpression propertyExpression, string propertyName)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression propertyExpression

The expression to create a descriptor from.

System.String propertyName

The property name, if null is 'ModelExpression.Metadata.Name' used

Properties

Model

The value of the property.

Declaration
public object Model { get; }
Property Value
Type Description
System.Object

ModelType

The type of the Property.

Declaration
public Type ModelType { get; }
Property Value
Type Description
System.Type

Name

The name of the property.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

PropertyExpression

The expression that the property was resolved from.

Declaration
public ModelExpression PropertyExpression { get; }
Property Value
Type Description
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression

Implements

Extension Methods