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

AF SDK Reference

AFNotificationRule.SetStatus Method (AFStatus)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFNotificationRule.SetStatus Method (AFStatus)
Set the Status property immediately in the server.

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

Syntax

public void SetStatus(
	AFStatus newStatus
)
Public Sub SetStatus ( 
	newStatus As AFStatus
)

Dim instance As AFNotificationRule
Dim newStatus As AFStatus

instance.SetStatus(newStatus)
public:
void SetStatus(
	AFStatus newStatus
)
member SetStatus : 
        newStatus : AFStatus -> unit 

Parameters

newStatus
Type: OSIsoft.AF.AnalysisAFStatus
The new AFStatus for the AFNotificationRule.

Remarks

Changing the Status using this method sets the value in the PI AF Server immediately and does not require the AFNotificationRule to be checked out or checked in.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8

See Also

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