AFNotificationRule.SetStatus Method (AFStatus)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.