Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

PIServers.Refresh Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServers.Refresh Method
Refresh the list of known PI Data Archive servers on the local machine, where the cached collections of connected servers will be refreshed.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public void Refresh()
Public Sub Refresh

Dim instance As PIServers

instance.Refresh()
public:
void Refresh()
member Refresh : unit -> unit 

Remarks

If changes are being made too quickly to the list of known PI Data Archive servers, the collection may not be able to keep up with the changes. This method can be called to make sure the collection is up-to-date.

Calling one of the PISystems.Refresh Overload methods will also refresh this collection of PIServer objects.

Note Notes to Callers
This call might use a background task to complete some of its work. See the Threading Overview for some matters to consider when execution transitions to another thread.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in