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

AF SDK Reference

AFTrace.GetTraceLevel Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTrace.GetTraceLevel Method
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: AFTraceSwitchLevel
Returns the trace level for the specified traceObject.

Remarks

The returned trace level combines both the object trace level (if available) and the overall TraceLevel.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in