AFCase.CreateTemporary Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
This method creates a temporary case from the current case.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFCase CreateTemporary()
Public Function CreateTemporary As AFCase Dim instance As AFCase Dim returnValue As AFCase returnValue = instance.CreateTemporary()
public: AFCase^ CreateTemporary()
member CreateTemporary : unit -> AFCase
Return Value
Type: AFCaseReturns the newly created temporary case.
Remarks
A temporary case is created by copying the current case, including the results, to
the newly created case. The temporary case can be modified just like any other
case, but the case cannot be saved. The case's result values are allowed to be published.
A temporary case cannot be used to create another temporary case and it will not be returned
by any of the FindCases Overload methods.