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

AF SDK Reference

PISystem.Refresh Method (IEnumerable(AFObject))

  • Last UpdatedNov 18, 2025
  • 2 minute read
PISystem.Refresh Method (IEnumerable(AFObject))
Refreshes the client with any changes that have been made to the specified objects since they were loaded.

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

Syntax

public void Refresh(
	IEnumerable<AFObject> objList
)
Public Sub Refresh ( 
	objList As IEnumerable(Of AFObject)
)

Dim instance As PISystem
Dim objList As IEnumerable(Of AFObject)

instance.Refresh(objList)
public:
void Refresh(
	IEnumerable<AFObject^>^ objList
)
member Refresh : 
        objList : IEnumerable<AFObject> -> unit 

Parameters

objList
Type: System.Collections.GenericIEnumerableAFObject
The list of IAFTransactable objects to be refreshed.

Remarks

This method will refresh the specified objects in bulk which is more efficient than refreshing each object one-at-a-time. Any of the specified objects that were previously loaded will be updated with any changes that have been saved to the server. If the object was not previously loaded, then it will be loaded with the latest changes from the server.

Most object types have a Load method (e.g. LoadContacts(PISystem, Guid) or LoadElements Overload) that will fully load an object if it has not already been fully loaded. These methods will not update the object if it has already been fully loaded. This method should be used if the object should be updated.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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