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

AF SDK Reference

IAFTrace Interface

  • Last UpdatedNov 18, 2025
  • 3 minute read
IAFTrace Interface
This interfaces provides a way for an object to implement object-level tracing.

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

Syntax

public interface IAFTrace
Public Interface IAFTrace

Dim instance As IAFTrace
public interface class IAFTrace
type IAFTrace =  interface end

The IAFTrace type exposes the following members.

Methods

  NameDescription
Public method
IsTraced
Indicates if a specified level is being traced.
Public method
TraceData
Output a data trace event.
Public method
TraceDetail
Output a detail trace event.
Public method
TraceError
Output an error trace event.
Public method
TraceEvent(AFTraceSwitchLevel, String)
Output a trace event with a message.
Public method
TraceEvent(AFTraceSwitchLevel, String, Int32)
Output a trace event with a message and a duration.
Public method
TraceEvent(AFTraceSwitchLevel, String, Object)
Output a trace event as a formatted message with a variable number of arguments.
Public method
TraceInformation
Output an information trace event.
Public method
TraceSummary
Output a summary trace event.
Public method
TraceWarning
Output a warning trace event.

Remarks

This interface is implemented on objects that want to provide event trace information. The child objects will call the parent implementation which will allow the parent to add additional information until the AFTrace class is called to generate the message.

Version Information

AFSDK


See Also

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