AFTimeRange.Intersect Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Computes the intersection between this AFTimeRange and another AFTimeRange.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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.