AFTimeRuleEvent Constructor (AFTime, AFTime, Object)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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
and additional information.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFTimeRuleEvent( AFTime startTime, AFTime endTime, Object additionalInfo )
Public Sub New ( startTime As AFTime, endTime As AFTime, additionalInfo As Object ) Dim startTime As AFTime Dim endTime As AFTime Dim additionalInfo As Object Dim instance As New AFTimeRuleEvent(startTime, endTime, additionalInfo)
public: AFTimeRuleEvent( AFTime startTime, AFTime endTime, Object^ additionalInfo )
new : startTime : AFTime * endTime : AFTime * additionalInfo : Object -> 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. - additionalInfo
- Type: SystemObject
The specified additional information 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.