Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFAuditTrail Constructor

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAuditTrail Constructor
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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in