OPC Studio User's Guide and Reference
Add(UAAttributeFieldCollection,UAAttributeFieldCollection) Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAAttributeFieldCollection Class > Add Method : Add(UAAttributeFieldCollection,UAAttributeFieldCollection) Method
First attribute field collection.

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Second attribute field collection.

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Produces the set union of two attribute field collections.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function Add( _
   ByVal first As UAAttributeFieldCollection, _
   ByVal second As UAAttributeFieldCollection _
) As UAAttributeFieldCollection
'Usage
 
Dim first As UAAttributeFieldCollection
Dim second As UAAttributeFieldCollection
Dim value As UAAttributeFieldCollection
 
value = UAAttributeFieldCollection.Add(first, second)

Parameters

first
First attribute field collection.

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

second
Second attribute field collection.

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Return Value

An attribute field collection that contains elements from both input attribute field collections, excluding duplicates.

Because the UAEventFilter has an implicit conversion from UAAttributeFieldCollection, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned OPC UA attribute field collection (representing the Select clauses of the event filter) in any place where UAEventFilter is expected as input, and the corresponding OPC UA event filter will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the UAEventFilter.FromUAAttributeFieldCollection static method instead.

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

The individual elements of the returned value are never null (Nothing in Visual Basic).

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