AFTimeRuleEvent.Duration Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This is a read-only property which returns the period's StartTime and
EndTime values as a time range.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFTimeSpan Duration { get; }
Public ReadOnly Property Duration As AFTimeSpan Get Dim instance As AFTimeRuleEvent Dim value As AFTimeSpan value = instance.Duration
public: virtual property AFTimeSpan Duration { AFTimeSpan get () sealed; }
abstract Duration : AFTimeSpan with get override Duration : AFTimeSpan with get
Property Value
Type: AFTimeSpanReturns the period's StartTime and EndTime values as an AFTimeRange.