StartQuery Method (HistoryQuery)
- Last UpdatedAug 21, 2026
- 1 minute read
Starts a history query by creating a new query context on the historian server using the provided arguments.
'Declaration
Public Function StartQuery( _
ByVal startArgs As HistoryQueryArgs, _
ByRef error As HistorianAccessError _
) As Boolean
'Usage
Dim instance As HistoryQuery
Dim startArgs As HistoryQueryArgs
Dim error As HistorianAccessError
Dim value As Boolean
value = instance.StartQuery(startArgs, error)
public bool StartQuery(
HistoryQueryArgs startArgs,
out HistorianAccessError error
)
public:
bool StartQuery(
HistoryQueryArgs^ startArgs,
[Out] HistorianAccessError^ error
)
Parameters
- startArgs
- Contains history query parameters.
- error
- Contains the error information in case of failure.
Return Value
Returns True if the query started successfully, or False otherwise.