RunQuery() method
- Last UpdatedJul 19, 2024
- 1 minute read
Execute the query or filter available on the Alarm Client Control by name. If the ApplyAsFilter option is true, then execute the query as a filter only. Note the following behaviors:
-
If ApplyAsFilter is true, the parameter QueryName needs to be a valid Filter.
-
If ApplyAsFilter is false, the parameter QueryName needs to be a valid Query.
-
In all other scenarios, the RunQuery() will not execute.
Syntax
AlarmClient.RunQuery(QueryName, ApplyAsFilter);
Parameters
QueryName
The name of the query or filter available on the Alarm Client Control.
ApplyAsFilter
Specify True to execute a query as a filter using the filter criteria and retain the existing alarm subscription.
Example
AlarmClient.RunQuery("High Alarms", true);