AFTimeRange.Intersect Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Computes the intersection between this AFTimeRange and another AFTimeRange.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFTimeRange Intersect( AFTimeRange timeRange )
Public Function Intersect ( timeRange As AFTimeRange ) As AFTimeRange Dim instance As AFTimeRange Dim timeRange As AFTimeRange Dim returnValue As AFTimeRange returnValue = instance.Intersect(timeRange)
public: AFTimeRange Intersect( AFTimeRange timeRange )
member Intersect : timeRange : AFTimeRange -> AFTimeRange
Parameters
- timeRange
- Type: OSIsoft.AF.TimeAFTimeRange
The AFTimeRange with which to intersect.
Return Value
Type: AFTimeRangeReturns the intersection between this AFTimeRange and the specified timeRange. If the two time ranges do not overlap, then Empty is returned.
Remarks
This method computes the intersection between this AFTimeRange and the specified
timeRange.