Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFAnalysis.AddCase Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAnalysis.AddCase Method
The AddCase method creates a new AFCase for the analysis based upon the TimeRule and PreviousCase.

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: AFCase
Returns 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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in