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.3Syntax
public class ExpressionPropertyDescriptor : Object, IPropertyDescriptor
Constructors
ExpressionPropertyDescriptor(ModelExpression, String)
Creates a new instance of Expression
Declaration
public ExpressionPropertyDescriptor(ModelExpression propertyExpression, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
propertyExpression | The expression to create a descriptor from. |
System. |
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. |
ModelType
The type of the Property.
Declaration
public Type ModelType { get; }
Property Value
Type | Description |
---|---|
System. |
Name
The name of the property.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
PropertyExpression
The expression that the property was resolved from.
Declaration
public ModelExpression PropertyExpression { get; }
Property Value
Type | Description |
---|---|
Microsoft. |