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

AF SDK Reference

IAFTrace.TraceEvent Method (AFTraceSwitchLevel, String, Int32)

IAFTrace.TraceEvent Method (AFTraceSwitchLevel, String, Int32)

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

void TraceEvent(
	AFTraceSwitchLevel level,
	string message,
	int durationInMilliseconds
)
Sub TraceEvent ( 
	level As AFTraceSwitchLevel,
	message As String,
	durationInMilliseconds As Integer
)

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

instance.TraceEvent(level, message, durationInMilliseconds)
void TraceEvent(
	AFTraceSwitchLevel level, 
	String^ message, 
	int durationInMilliseconds
)
abstract 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