Click or drag to resize
OSIsoft, LLC

AFSearchClose Method

Closes the search that is cached in the server.

Namespace:  OSIsoft.AF.Search
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public void Close()

When a cached search is no longer needed, this method should be called to clear the cached results from the server. If the cache was not enabled for the search, then this method will not do anything. If the cache was enabled, then a call is made to the server to clear the cached results. Once the search is closed, a new call to get results from the search will behave as if the Refresh method had been called.

Note Note
This method implements the Dispose method and therefore can be used with a using statement.

Version Information


Supported in: 2.10.5, 2.10, 2.9.5, 2.9
See Also
Enabling Operational Intelligence