AFDatabase.UndoCheckOut Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Rolls back all the changes to the database since the last call to the
CheckOut method of each object. Any
changes since the check out will be lost.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void UndoCheckOut( bool force )
Public Sub UndoCheckOut ( force As Boolean ) Dim instance As AFDatabase Dim force As Boolean instance.UndoCheckOut(force)
public: void UndoCheckOut( bool force )
member UndoCheckOut : force : bool -> unit
Parameters
- force
- Type: SystemBoolean
If this parameter is , then the check out is undone even if the objects have been checked out by another user. If , then the check out will only be undone for the objects that have been checked out by the user.
Events
| Event Type | Reason |
|---|---|
| AFDatabaseChanged | This event will be raised for each object updated by this method call. |
Remarks
A check out can only be undone by the user who currently has the object checked out
unless the force parameter is set to .