EntityStringBasedValueProperty<TEntity,TEntityValue,TValue> Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the EntityStringBasedValueProperty<TEntity,TEntityValue,TValue> class.
public EntityStringBasedValueProperty (int index, string propertyName, bool isCaseSensitive, Microsoft.VisualStudio.ProjectSystem.Query.ValueTypes.IValueType<TValue> valueType, Func<TEntity,TValue> getValue, Action<TEntityValue,TValue> setValue);
new Microsoft.VisualStudio.ProjectSystem.Query.Framework.EntityStringBasedValueProperty<'Entity, 'EntityValue, 'Value (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity and 'EntityValue :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityValue)> : int * string * bool * 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.EntityStringBasedValueProperty<'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, isCaseSensitive As Boolean, 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.
- isCaseSensitive
- Boolean
Whether the property is considered to be case-sensitive.
- 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.