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 (AFTimeRuleEvent)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAnalysis.AddCase Method (AFTimeRuleEvent)
The AddCase method creates a new AFCase for the analysis after the specified AFTimeRuleEvent.

Namespace:  OSIsoft.AF.Analysis
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFCase AddCase(
	AFTimeRuleEvent previousEvent
)
Public Function AddCase ( 
	previousEvent As AFTimeRuleEvent
) As AFCase

Dim instance As AFAnalysis
Dim previousEvent As AFTimeRuleEvent
Dim returnValue As AFCase

returnValue = instance.AddCase(previousEvent)
public:
AFCase^ AddCase(
	AFTimeRuleEvent^ previousEvent
)
member AddCase : 
        previousEvent : AFTimeRuleEvent -> AFCase 

Parameters

previousEvent
Type: OSIsoft.AF.TimeAFTimeRuleEvent
The previous AFTimeRuleEvent after which the new AFCase should be created.

Return Value

Type: AFCase
Returns the newly created AFCase that was added.

Version Information

AFSDK


See Also

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