AFAuditTrail Constructor
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Create an AFAuditTrail instance to read audit trail events for the requested PISystem.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFAuditTrail( PISystem piSystem )
Public Sub New ( piSystem As PISystem ) Dim piSystem As PISystem Dim instance As New AFAuditTrail(piSystem)
public: AFAuditTrail( PISystem^ piSystem )
new : piSystem : PISystem -> AFAuditTrail
Parameters
- piSystem
- Type: OSIsoft.AFPISystem
PISystem that is used when reading audit trail events.
Remarks
Calling the Audit Trail constructor requires the calling user to have administrative permissions.
Creates an AFAuditTrail instance for the specified PISystem, and provides read access to
audit trail events. The audit trail events are first retrieved as a set of changes by object and timestamp, and for change
additional details about the before and after values can be retrieved.