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

AF SDK Reference

OSIsoft.AF.Diagnostics Namespace

  • Last UpdatedNov 18, 2025
  • 3 minute read
OSIsoft.AF.Diagnostics Namespace
The OSIsoft.AF.Diagnostics namespace provides a set of diagnostic utility classes.

Classes

  ClassDescription
Public class
AFAdmin
The AFAdmin class is used to perform administrative functions with the PI AF Server.
Public class
AFAdminDiagnosticNames
Diagnostic names to be used with the values returned from the GetDiagnostics(PISystem) method.
Public class
AFAuditTrail
Provides audit trail information for the requested PISystem.
Public class
AFCache
This class caches certain AF objects and collections to prevent them from untimely garbage collection.
Public class
AFStopwatch
A simpler and faster stop watch than System.Diagnostics.Stopwatch.
Public classCode example
AFTrace
The AFTrace class provides a mechanism for generating trace events within the SDK to trace listeners.

Structures

  StructureDescription
Public structureCode example
AFRpcMetric
This structure is used to represent the remote procedure call metrics of the server.
Public structure
AFSession
This structure is used to represent a session on the PI AF Application Server.

Interfaces

  InterfaceDescription
Public interface
IAFTrace
This interfaces provides a way for an object to implement object-level tracing.

Enumerations

  EnumerationDescription
Public enumeration
AFAuditTrailAFOperation
Specifies the type of action that occurred in the PISystem at an event time.
Public enumeration
AFTraceSwitchLevel
Specifies what output messages for the AFTrace class.
TitleResults for “How to create a CRG?”Also Available in