StartQuery Method (TagQuery)
- Last UpdatedAug 21, 2026
- 1 minute read
Starts a tag query by creating a new query context on the historian server using the provided arguments.
'Declaration
Public Function StartQuery( _
ByVal tagQueryArgs As TagQueryArgs, _
ByRef tagCount As UInteger, _
ByRef error As HistorianAccessError _
) As Boolean
'Usage
Dim instance As TagQuery
Dim tagQueryArgs As TagQueryArgs
Dim tagCount As UInteger
Dim error As HistorianAccessError
Dim value As Boolean
value = instance.StartQuery(tagQueryArgs, tagCount, error)
public bool StartQuery(
TagQueryArgs tagQueryArgs,
out uint tagCount,
out HistorianAccessError error
)
public:
bool StartQuery(
TagQueryArgs^ tagQueryArgs,
[Out] uint tagCount,
[Out] HistorianAccessError^ error
)
Parameters
- tagQueryArgs
- Contains tag query parameters.
- tagCount
- Contains the number of tags found which satified the criteria passed in the arguments.
- error
- Contains the error information in case of failure.
Return Value
Returns True if the query started successfully, or False otherwise.