AFAnalysis.GetLastCase Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Use this method to get the case with the latest start time for the analysis.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFCase GetLastCase()
Public Function GetLastCase As AFCase Dim instance As AFAnalysis Dim returnValue As AFCase returnValue = instance.GetLastCase()
public: AFCase^ GetLastCase()
member GetLastCase : unit -> AFCase
Return Value
Type: AFCaseReturns the AFCase object with the latest start time for the analysis.
Remarks
The analysis must be saved to the server before calling this method.