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

AF SDK Reference

AFTrace.IsTraced Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTrace.IsTraced Method
Indicates if the specified level is traced.

Namespace:  OSIsoft.AF.Diagnostics
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static bool IsTraced(
	AFTraceSwitchLevel level
)
Public Shared Function IsTraced ( 
	level As AFTraceSwitchLevel
) As Boolean

Dim level As AFTraceSwitchLevel
Dim returnValue As Boolean

returnValue = AFTrace.IsTraced(level)
public:
static bool IsTraced(
	AFTraceSwitchLevel level
)
static member IsTraced : 
        level : AFTraceSwitchLevel -> bool 

Parameters

level
Type: OSIsoft.AF.DiagnosticsAFTraceSwitchLevel
The trace level to check if it is currently being traced.

Return Value

Type: Boolean
Returns if the specified trace level is being traced. Otherwise, is returned.

Remarks

The default trace levels is controlled by the AFTrace.config configuration file. This method indicates if the specified trace level is currently being traced.

Version Information

AFSDK


See Also

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