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

AF SDK Reference

AFTrace.TraceEvent Method (AFTraceSwitchLevel, String, Int32)

AFTrace.TraceEvent Method (AFTraceSwitchLevel, String, Int32)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTrace.TraceEvent Method (AFTraceSwitchLevel, String, Int32)
Output a trace event with a message and a duration.

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

Syntax

public static void TraceEvent(
	AFTraceSwitchLevel level,
	string message,
	int durationInMilliseconds
)
Public Shared Sub TraceEvent ( 
	level As AFTraceSwitchLevel,
	message As String,
	durationInMilliseconds As Integer
)

Dim level As AFTraceSwitchLevel
Dim message As String
Dim durationInMilliseconds As Integer

AFTrace.TraceEvent(level, message, durationInMilliseconds)
public:
static void TraceEvent(
	AFTraceSwitchLevel level, 
	String^ message, 
	int durationInMilliseconds
)
static member TraceEvent : 
        level : AFTraceSwitchLevel * 
        message : string * 
        durationInMilliseconds : int -> unit 

Parameters

level
Type: OSIsoft.AF.DiagnosticsAFTraceSwitchLevel
The tracing level of the trace event being generated.
message
Type: SystemString
The trace event message being generated.
durationInMilliseconds
Type: SystemInt32
The duration of the event specified in milliseconds.

Version Information

AFSDK


See Also

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