PISystem.Refresh Method (IEnumerable(AFObject))
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.