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

AF SDK Reference

AFNotification.TraceEvent Method (AFTraceSwitchLevel, String, Object[])

AFNotification.TraceEvent Method (AFTraceSwitchLevel, String, Object[])

  • Last UpdatedJan 12, 2026
  • 2 minute read
AFNotification.TraceEvent Method (AFTraceSwitchLevel, String, Object[])
Output a trace event as a formatted message with a variable number of arguments.

Namespace:  OSIsoft.AF.Notification
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7

Syntax

public void TraceEvent(
	AFTraceSwitchLevel level,
	string format,
	params Object[] args
)
Public Sub TraceEvent ( 
	level As AFTraceSwitchLevel,
	format As String,
	ParamArray args As Object()
)

Dim instance As AFNotification
Dim level As AFTraceSwitchLevel
Dim format As String
Dim args As Object()

instance.TraceEvent(level, format, args)
public:
virtual void TraceEvent(
	AFTraceSwitchLevel level, 
	String^ format, 
	... array<Object^>^ args
) sealed
abstract TraceEvent : 
        level : AFTraceSwitchLevel * 
        format : string * 
        args : Object[] -> unit 
override TraceEvent : 
        level : AFTraceSwitchLevel * 
        format : string * 
        args : Object[] -> unit 

Parameters

level
Type: OSIsoft.AF.DiagnosticsAFTraceSwitchLevel
The tracing level of the trace event being generated.
format
Type: SystemString
The format string of the trace event message being generated.
args
Type: SystemObject
A variable list of arguments for the format string of the trace message being generated.

Implements

IAFTraceTraceEvent(AFTraceSwitchLevel, String, Object)

Version Information

AFSDK


See Also

In This Topic
Related Links