PISystem.ApplyChanges Method (AFCheckedOutMode)
- Last UpdatedNov 18, 2025
- 3 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 ApplyChanges( AFCheckedOutMode mode )
Public Sub ApplyChanges ( mode As AFCheckedOutMode ) Dim instance As PISystem Dim mode As AFCheckedOutMode instance.ApplyChanges(mode)
public: void ApplyChanges( AFCheckedOutMode mode )
member ApplyChanges : mode : AFCheckedOutMode -> unit
Parameters
- mode
- Type: OSIsoft.AFAFCheckedOutMode
The mode specifies which objects will be applied to the server. Specifying ObjectsCheckedOutToMe is the same as calling the ApplyChanges method with no parameters.
Remarks
This method will apply the changes made to all system level modified objects according to the specified AFCheckedOutMode so that those changes become available to other applications executing under the same user account. This includes AFContact, AFNotificationContactTemplate, and UOMDatabase objects. It does not include any objects checked out under an AFDatabase. If this PISystem is an AFCollective, then any changes to the Collective will also be saved to the server. This method will not check in those changes. However, once this method has been called, the changes will be available for check in on subsequent invocations of the application for the currently logged in user. This method is useful when making changes to templates to allow the changes to be realized in the objects derived from the template. A call to this method is not required before calling one of the CheckIn Overload methods.
Care should be taken to limit the amount of applied at one time to reasonable amounts. While it is possible to make a significant number of changes at one time, these changes are transferred to the PI AF Server at one time and can thus require significant amounts of memory to complete the operation.