AFAnalysis.TraceEvent Method (AFTraceSwitchLevel, String, Int32)
- Last UpdatedSep 18, 2024
- PI System
- AF SDK 2024
- 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.0.1156
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 AFAnalysis 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.Diagnostics.AFTraceSwitchLevel
The tracing level of the trace event being generated. - message
- Type: System.String
The trace event message being generated. - durationInMilliseconds
- Type: System.Int32
The duration of the event specified in milliseconds.