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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > UnionData Class > UnionData Constructor : UnionData Constructor(UnionDataType,String,GenericData)
The associated union data type.
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 data type, field name, and field value.
Syntax
'Declaration
 
Public Function New( _
   ByVal dataType As UnionDataType, _
   ByVal fieldName As String, _
   ByVal fieldValue As GenericData _
)
'Usage
 
Dim dataType As UnionDataType
Dim fieldName As String
Dim fieldValue As GenericData
 
Dim instance As New UnionData(dataType, fieldName, fieldValue)

Parameters

dataType
The associated union data type.
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