QuickOPC User's Guide and Reference
UnionData Constructor(String,GenericData)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > UnionData Class > UnionData Constructor : UnionData Constructor(String,GenericData)
Determines which of the data fields is in use.
The value of the currently used data field.
Initializes a new instance of the class. Initializes a new instance of the class with given field name and field value.
Syntax
'Declaration
 
Public Function New( _
   ByVal fieldName As String, _
   ByVal fieldValue As GenericData _
)
'Usage
 
Dim fieldName As String
Dim fieldValue As GenericData
 
Dim instance As New UnionData(fieldName, fieldValue)
public UnionData( 
   string fieldName,
   GenericData fieldValue
)
public:
UnionData( 
   String^ fieldName,
   GenericData^ fieldValue
)

Parameters

fieldName
Determines which of the data fields is in use.
fieldValue
The value of the currently used data field.
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