AFNotificationContentResults.TraceEvent Method (AFTraceSwitchLevel, String, Object[])
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.1.1.1182
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 AFNotificationContentResults 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.