AFTrace.SetTraceLevel Method (AFTraceSwitchLevel)
- Last UpdatedNov 18, 2025
- 1 minute read
- PI System
- AF SDK 2024 R2
- Developer
Sets the overall TraceLevel to the specified level.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static void SetTraceLevel( AFTraceSwitchLevel level )
Public Shared Sub SetTraceLevel ( level As AFTraceSwitchLevel ) Dim level As AFTraceSwitchLevel AFTrace.SetTraceLevel(level)
public: static void SetTraceLevel( AFTraceSwitchLevel level )
static member SetTraceLevel : level : AFTraceSwitchLevel -> unit
Parameters
- level
- Type: OSIsoft.AF.DiagnosticsAFTraceSwitchLevel
The new value for the overall TraceLevel.