AFTrace.GetTraceLevel Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Returns the trace level for the object.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFTraceSwitchLevel GetTraceLevel( AFObject traceObject )
Public Shared Function GetTraceLevel ( traceObject As AFObject ) As AFTraceSwitchLevel Dim traceObject As AFObject Dim returnValue As AFTraceSwitchLevel returnValue = AFTrace.GetTraceLevel(traceObject)
public: static AFTraceSwitchLevel GetTraceLevel( AFObject^ traceObject )
static member GetTraceLevel : traceObject : AFObject -> AFTraceSwitchLevel
Parameters
- traceObject
- Type: OSIsoft.AFAFObject
The object that is being checked for its tracing level.
Return Value
Type: AFTraceSwitchLevelReturns the trace level for the specified traceObject.
Remarks
The returned trace level combines both the object trace level (if available) and the
overall TraceLevel.