AFTimeRuleEvent Constructor (AFTime, AFTime)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Initializes a new instance of the class with the specified values.
Initializes a new instance of a time rule event with the specified start and end times.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFTimeRuleEvent( AFTime startTime, AFTime endTime )
Public Sub New ( startTime As AFTime, endTime As AFTime ) Dim startTime As AFTime Dim endTime As AFTime Dim instance As New AFTimeRuleEvent(startTime, endTime)
public: AFTimeRuleEvent( AFTime startTime, AFTime endTime )
new : startTime : AFTime * endTime : AFTime -> AFTimeRuleEvent
Parameters
- startTime
- Type: OSIsoft.AF.TimeAFTime
The specified start time to initialize the new time rule event. - endTime
- Type: OSIsoft.AF.TimeAFTime
The specified end time to initialize the new time rule event.
Remarks
The instance of the class created using this constructor does not belong
to any collection. To add the object to a collection, use the collection's
Add method.