AFAnalysis.SetStatus Method (AFStatus)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Set the analysis Status property immediately in the server.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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. |