IAFTrace.IsTraced Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Indicates if a specified level is being traced.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
bool IsTraced( AFTraceSwitchLevel level )
Function IsTraced ( level As AFTraceSwitchLevel ) As Boolean Dim instance As IAFTrace Dim level As AFTraceSwitchLevel Dim returnValue As Boolean returnValue = instance.IsTraced(level)
bool IsTraced( AFTraceSwitchLevel level )
abstract IsTraced : level : AFTraceSwitchLevel -> bool
Parameters
- level
- Type: OSIsoft.AF.DiagnosticsAFTraceSwitchLevel
The tracing level to be checked if it is currently being traced.
Return Value
Type: BooleanReturns if the specified trace level is being traced. Otherwise, is returned.
Remarks
This method indicates if the specified trace level is currently being traced.