AFTimeRuleEvent Constructor (IAFTimePeriod)
- 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 for the specified IAFTimePeriod.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFTimeRuleEvent( IAFTimePeriod timePeriod )
Public Sub New ( timePeriod As IAFTimePeriod ) Dim timePeriod As IAFTimePeriod Dim instance As New AFTimeRuleEvent(timePeriod)
public: AFTimeRuleEvent( IAFTimePeriod^ timePeriod )
new : timePeriod : IAFTimePeriod -> AFTimeRuleEvent
Parameters
- timePeriod
- Type: OSIsoft.AF.TimeIAFTimePeriod
The IAFTimePeriod used 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.