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

AF SDK Reference

AFTrace.SetTraceLevel Method (AFNotification, AFTraceSwitchLevel)

AFTrace.SetTraceLevel Method (AFNotification, AFTraceSwitchLevel)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTrace.SetTraceLevel Method (AFNotification, AFTraceSwitchLevel)
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.

Version Information

AFSDK


See Also

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