AFAnalysis.SetStatus Method (AFStatus)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Set the analysis Status property immediately in the server.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void SetStatus( AFStatus status )
Public Sub SetStatus ( status As AFStatus ) Dim instance As AFAnalysis Dim status As AFStatus instance.SetStatus(status)
public: void SetStatus( AFStatus status )
member SetStatus : status : AFStatus -> unit
Parameters
- status
- Type: OSIsoft.AF.AnalysisAFStatus
The new AFStatus for the analysis.
Remarks
Changing the analysis Status using this method sets the value in the
PI AF Server immediately and does not require the analysis to be checked out or checked in.
| When setting the Status, it is more efficient to call this method to reduce the number of calls to the PI AF Server. |