AFCollective.ApplyChanges Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Save collective changes to the PI AF Server without specifying an event handler.
Namespace: OSIsoft.AF.Collective
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void ApplyChanges()
Public Sub ApplyChanges Dim instance As AFCollective instance.ApplyChanges()
public: void ApplyChanges()
member ApplyChanges : unit -> unit
Remarks
If the PISystem is currently connected to the PI AF Server (see PISystem.ConnectionInfo.IsConnected), then this method will save all modifications to the AFCollective to the PI AF Server. The Refresh method can be called before making any changes to the collective to ensure that it has the most recent changes.
If the PISystem is not currently connected to the PI AF Server, then this method will save the information to connect to the AFCollective locally on the client computer. The next time a connection is made to the PI AF Server, the information will be updated from the server.