AFCase Constructor (AFAnalysis, AFTimeRuleEvent)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new instance of an AFCase with its start and end times defined by
an AFTimeRuleEvent.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFCase( AFAnalysis analysis, AFTimeRuleEvent timeRuleEvent )
Public Sub New ( analysis As AFAnalysis, timeRuleEvent As AFTimeRuleEvent ) Dim analysis As AFAnalysis Dim timeRuleEvent As AFTimeRuleEvent Dim instance As New AFCase(analysis, timeRuleEvent)
public: AFCase( AFAnalysis^ analysis, AFTimeRuleEvent^ timeRuleEvent )
new : analysis : AFAnalysis * timeRuleEvent : AFTimeRuleEvent -> AFCase
Parameters
- analysis
- Type: OSIsoft.AF.AnalysisAFAnalysis
The new AFCase is added to the specified AFAnalysis. - timeRuleEvent
- Type: OSIsoft.AF.TimeAFTimeRuleEvent
The AFTimeRuleEvent used to specify the case's StartTime and EndTime.
Remarks
The new AFCase is automatically added to the specified analysis.
The case's StartTime and EndTime are
initialized by the specified timeRuleEvent.