IAFTimePeriod.Duration Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
This is a read-only property which returns the duration between the period's StartTime and
EndTime values as an AFTimeSpan.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
AFTimeSpan Duration { get; }
ReadOnly Property Duration As AFTimeSpan Get Dim instance As IAFTimePeriod Dim value As AFTimeSpan value = instance.Duration
property AFTimeSpan Duration { AFTimeSpan get (); }
abstract Duration : AFTimeSpan with get
Property Value
Type: AFTimeSpanReturns the duration between the period's StartTime and EndTime values as an AFTimeSpan.