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

AF SDK Reference

AFCollective.ApplyChanges Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFCollective.ApplyChanges Method
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.

Version Information

AFSDK


See Also

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