OPC Studio User's Guide and Reference
Intersect Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataAccess Namespace > UARange Class : Intersect Method
The first range.

The value of this parameter cannot be null (Nothing in Visual Basic).

The second range.

The value of this parameter cannot be null (Nothing in Visual Basic).

Computes an intersection of two ranges.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function Intersect( _
   ByVal first As UARange, _
   ByVal second As UARange _
) As UARange
'Usage
 
Dim first As UARange
Dim second As UARange
Dim value As UARange
 
value = UARange.Intersect(first, second)
[NotNull()]
public static UARange Intersect( 
   UARange first,
   UARange second
)
[NotNull()]
public:
static UARange^ Intersect( 
   UARange^ first,
   UARange^ second
) 

Parameters

first
The first range.

The value of this parameter cannot be null (Nothing in Visual Basic).

second
The second range.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

Returns the intersection of first and second ranges.

This method never returns null (Nothing in Visual Basic).

Remarks
The intersection contains all elements of the first range that also belong to the second range.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also