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

AF SDK Reference

AFAuditTrail Class

  • Last UpdatedNov 18, 2025
  • 4 minute read
AFAuditTrail Class
Provides audit trail information for the requested PISystem.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.DiagnosticsAFAuditTrail

Namespace:  OSIsoft.AF.Diagnostics
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

[SerializableAttribute]
public class AFAuditTrail
<SerializableAttribute>
Public Class AFAuditTrail

Dim instance As AFAuditTrail
[SerializableAttribute]
public ref class AFAuditTrail
[<SerializableAttribute>]
type AFAuditTrail =  class end

The AFAuditTrail type exposes the following members.

Constructors

  NameDescription
Public method
AFAuditTrail
Create an AFAuditTrail instance to read audit trail events for the requested PISystem.

Methods

  NameDescription
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetDetails
Public method
GetFirst(AFTimeRange, Int32)
Read audit trail events from the PISystem for the requested time range up to the specified maximum count.
Public method
GetFirst(AFObject, Boolean, AFTimeRange, Int32)
Read audit trail events from the PISystem for the requested time range up to the specified maximum count.
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetNext
Read next page of audit trail events for the originally requested inputs. If AFAuditTrailGetFirst has not been called, then GetNext will throw invalid parameter error.
Public method
GetPrevious
Read previous page of audit trail events for the originally requested inputs. If AFAuditTrailGetFirst and GetNext has not been called, then GetPrevious will throw invalid parameter error.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Remarks

The Audit Trail requires the calling user to have administrative permissions. To retrieve audit trail events for the requested PISystem, call the AFAuditTrailGetFirst method and read the first page of audit trail events for the requested inputs. If there is more data for the requested inputs then call the GetNext method to read the next page of results. Continue to call the GetNext method until the originally requested endTime has been reached. The GetDetails(DataRow) method can be used to retrieve information about the before and after values for a data row in a DataTable that was returned by having called one of the audit trail read methods.

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

TitleResults for “How to create a CRG?”Also Available in