AFCase.TraceEvent Method (AFTraceSwitchLevel, String, Int32)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Output a trace event with a message and a duration.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void TraceEvent( AFTraceSwitchLevel level, string message, int durationInMilliseconds )
Public Sub TraceEvent ( level As AFTraceSwitchLevel, message As String, durationInMilliseconds As Integer ) Dim instance As AFCase Dim level As AFTraceSwitchLevel Dim message As String Dim durationInMilliseconds As Integer instance.TraceEvent(level, message, durationInMilliseconds)
public: virtual void TraceEvent( AFTraceSwitchLevel level, String^ message, int durationInMilliseconds ) sealed
abstract TraceEvent : level : AFTraceSwitchLevel * message : string * durationInMilliseconds : int -> unit override 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.