Partager via


EntityPathBasedValueProperty<TEntity,TEntityValue,TValue> Constructor

Definition

Initializes a new instance of the EntityPathBasedValueProperty<TEntity,TEntityValue,TValue> class.

public EntityPathBasedValueProperty (int index, string propertyName, Microsoft.VisualStudio.ProjectSystem.Query.ValueTypes.IValueType<TValue> valueType, Func<TEntity,TValue> getValue, Action<TEntityValue,TValue> setValue);
new Microsoft.VisualStudio.ProjectSystem.Query.Framework.EntityPathBasedValueProperty<'Entity, 'EntityValue, 'Value (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity and 'EntityValue :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityValue)> : int * string * Microsoft.VisualStudio.ProjectSystem.Query.ValueTypes.IValueType<'Value> * Func<'Entity, 'Value (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * Action<'EntityValue, 'Value (requires 'EntityValue :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityValue)> -> Microsoft.VisualStudio.ProjectSystem.Query.Framework.EntityPathBasedValueProperty<'Entity, 'EntityValue, 'Value (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity and 'EntityValue :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityValue)>
Public Sub New (index As Integer, propertyName As String, valueType As IValueType(Of TValue), getValue As Func(Of TEntity, TValue), setValue As Action(Of TEntityValue, TValue))

Parameters

index
Int32

The index of the property in its host type.

propertyName
String

The name of the property.

valueType
IValueType<TValue>

The model value type.

getValue
Func<TEntity,TValue>

A function to retrieve the value of the property from an object.

setValue
Action<TEntityValue,TValue>

A function to set the value of the property to an object.

Applies to