AFTimeRuleEvent Constructor (AFTime)
- 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 time.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFTimeRuleEvent( AFTime startTime )
Public Sub New ( startTime As AFTime ) Dim startTime As AFTime Dim instance As New AFTimeRuleEvent(startTime)
public: AFTimeRuleEvent( AFTime startTime )
new : startTime : AFTime -> AFTimeRuleEvent
Parameters
- startTime
- Type: OSIsoft.AF.TimeAFTime
The specified start 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.