AFAnalysis.AddCase Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFCase AddCase()
Public Function AddCase As AFCase Dim instance As AFAnalysis Dim returnValue As AFCase returnValue = instance.AddCase()
public: AFCase^ AddCase()
member AddCase : unit -> AFCase
Return Value
Type: AFCaseReturns the newly created AFCase that was added.
Remarks
If the PreviousCase exists, it is used as the previous event
to generate the next case. If the previous case does not exist, then a
case is generated with an EndTime
that falls before the current time.