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 (EventHandler(AFProgressEventArgs))

AFCollective.ApplyChanges Method (EventHandler(AFProgressEventArgs))

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFCollective.ApplyChanges Method (EventHandler(AFProgressEventArgs))
Save collective changes to the PI AF Server and notify client of progress using specified event handler.

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

Syntax

public void ApplyChanges(
	EventHandler<AFProgressEventArgs> eventHandler
)
Public Sub ApplyChanges ( 
	eventHandler As EventHandler(Of AFProgressEventArgs)
)

Dim instance As AFCollective
Dim eventHandler As EventHandler(Of AFProgressEventArgs)

instance.ApplyChanges(eventHandler)
public:
void ApplyChanges(
	EventHandler<AFProgressEventArgs^>^ eventHandler
)
member ApplyChanges : 
        eventHandler : EventHandler<AFProgressEventArgs> -> unit 

Parameters

eventHandler
Type: SystemEventHandlerAFProgressEventArgs
Delegate used to receive progress indication on operation. If , then any errors saving changes to the primary member will generate an exception and to the secondary members will be ignored.

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