Gets a string array of point names that match the specified criteria.
public static string[] GetPointNames(
string queryString,
PointQueryOptions queryOption
)
Parameters
- queryString
-
Type: string
The search criterion.
- queryOption
-
Type: PointQueryOptions
The query match option.
Return Value
An array of strings.
DataHub WebView uses both both local and server-side data points. Local data points are managed by the WebView client and do not persist.
Server-side data points are managed by DataHub.
For a comprehensive discussion of how to work with data points in script, see Working with Data Points.
This example shows how to get a list of data points that match a
Regular Expression.
// With the DataPid simulation program running, this script returns the names of two points:
// - DataPid:PID1.Setpoint.AutoMode
// - DataPid:PID1.Setpoint.AutoTime
WV.GetPointNames("PID.*Auto", PointQueryOptions.Regex);
