IAFTimePeriod.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 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.1.1.1182
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.