AFAnalysis.AddCase Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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.