Click or drag to resize
OSIsoft, LLC

AFSearchParseQuery Method

Note: This API is now obsolete.

Parses the specified search query into search tokens which can be used to search for objects.

Namespace:  OSIsoft.AF.Search
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
[ObsoleteAttribute("Use ParseQueryString instead. This method cannot support Or tokens.")]
public static IList<AFSearchToken> ParseQuery(
	string query


Type: SystemString
The search query to be parsed. Strings will be interpreted with the Parse(String, AFTime, IFormatProvider) method so that relative formats with intervals ("*", "T+3h", etc.) are also supported. Relative time intervals are based on the database's QueryDate.

Return Value

Type: IListAFSearchToken
Returns a list of search tokens representing the parts of the parsed query.
The specified query is parsed into tokens. These tokens can be used to perform a search for objects from the server. See Search Overview for more information.
Version Information


Obsolete (compiler warning) in 2.10.5
See Also
Enabling Operational Intelligence