Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

IAFTimePeriod.Duration Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
IAFTimePeriod.Duration Property
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: AFTimeSpan
Returns the duration between the period's StartTime and EndTime values as an AFTimeSpan.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in