Click or drag to resize
OSIsoft, LLC

AFElementSearch Constructor (AFDatabase, String, IListAFSearchToken)

Note: This API is now obsolete.

Creates an instance of an AFElementSearch to search for AFElement objects using the specified list of search tokens.

Namespace:  OSIsoft.AF.Search
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.6.195
Syntax
[ObsoleteAttribute("Use AFElementSearch(AFDatabase database, string name, IList<AFSearchTokenBase> tokens) constructor instead.")]
public AFElementSearch(
	AFDatabase database,
	string name,
	IList<AFSearchToken> tokens
)

Parameters

database
Type: OSIsoft.AFAFDatabase
The AFDatabase to be searched by the query. This parameter will initialize the Database property.
name
Type: SystemString
The SearchName associated with the created search object. This is only informational and does not affect the searches.
tokens
Type: System.Collections.GenericIListAFSearchToken
The list of tokens to initialize the TokenCollection property for the new object and will be used when calling search method. A query string can be converted to a list of tokens by calling the ParseQueryString(String) method.
Version Information

AFSDK

Supported in: 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5
Obsolete (compiler warning) in 2.10.5
See Also
Enabling Operational Intelligence