AFTimeRuleEvent.EndTime Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
This read-only property represents the end time of the period.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFTime EndTime { get; }
Public ReadOnly Property EndTime As AFTime Get Dim instance As AFTimeRuleEvent Dim value As AFTime value = instance.EndTime
public: virtual property AFTime EndTime { AFTime get () sealed; }
abstract EndTime : AFTime with get override EndTime : AFTime with get
Property Value
Type: AFTimeRepresents the end time of the period. This value cannot be earlier than the StartTime.
Implements
IAFTimePeriodEndTime
Remarks
If this property evaluates to AFTime.MaxValue, the
period is considered still in progress and the end time is implied as the current time.
Passing AFTime.MaxValue or
to the SetEndTime(Object) method sets the end time so that the period is implied to be
still in progress.
Remarks
The value of this property is automatically set by the time rule.
It can be modified by calling the SetEndTime(Object) method.