ValueSelector Property (HistoryQueryResult)
- Last UpdatedAug 21, 2026
- 1 minute read
Gets or sets the column to return for specified analog summary tags in the four basic retrieval modes: DELTA, FULL, CYCLIC, and INTERPOLATED.
'Declaration
Public Property ValueSelector As String
'Usage
Dim instance As HistoryQueryResult
Dim value As String
instance.ValueSelector = value
value = instance.ValueSelector
public string ValueSelector {get; set;}
Property Value
Valid values are AUTO (the default in all modes if not overridden), MINIMUM or MIN, MAXIMUM or MAX, FIRST, LAST, AVERAGE or AVG, INTEGRAL, and STDDEV or STANDDEVIATION.The default AUTO setting returns the Last attribute in the Value column (which makes it accessible in the WideHistory table). You can only override the selector for the basic retrieval modes. FIRST, LAST, MIN, and MAX each have their own timestamp that will be used for the time part of the VTQ. AVG, INTEGRAL and STDDEV represent values that hold for the entire cycle so the summary period start time will be used for the time part of a VTQ.