AFSearch.Refresh Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Refreshes the search that is cached in the server.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void Refresh()
Public Sub Refresh Dim instance As AFSearch instance.Refresh()
public: virtual void Refresh() sealed
abstract Refresh : unit -> unit override Refresh : unit -> unit
Remarks
The server will cache queries to improve performance when returning multiple pages. This means that the query will not pick up any added objects until the cached query times out (based upon the CacheTimeout) or is automatically refreshed (based upon the CacheInterval). This method can be called to manually force the cached query to be updated.