AFDatabase.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 AFDatabase 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 modified objects according to the specified AFCheckedOutMode parameter so that those changes become available to other applications executing under the same user account. 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 element templates to allow the changes to be realized in the elements derived from the template. A call to this method is not required before calling one of the AFDatabaseCheckIn 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.
This event will be raised for each object updated by this method call.