AFTrace.SetTraceLevel Method (AFNotification, AFTraceSwitchLevel)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Sets the trace level for an AFNotification object.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static void SetTraceLevel( AFNotification notification, AFTraceSwitchLevel level )
Public Shared Sub SetTraceLevel ( notification As AFNotification, level As AFTraceSwitchLevel ) Dim notification As AFNotification Dim level As AFTraceSwitchLevel AFTrace.SetTraceLevel(notification, level)
public: static void SetTraceLevel( AFNotification^ notification, AFTraceSwitchLevel level )
static member SetTraceLevel : notification : AFNotification * level : AFTraceSwitchLevel -> unit
Parameters
- notification
- Type: OSIsoft.AF.NotificationAFNotification
The AFNotification having its trace level set. - level
- Type: OSIsoft.AF.DiagnosticsAFTraceSwitchLevel
The new trace level for the notification.