OPC Studio User's Guide and Reference
UnionDataType Constructor(IEnumerable<DataField>)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > UnionDataType Class > UnionDataType Constructor : UnionDataType Constructor(IEnumerable<DataField>)
A collection of data fields of the union data type.

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

Initializes a new instance of the class, with given data fields.
Syntax
'Declaration
 
Public Function New( _
   ByVal dataFields As IEnumerable(Of DataField) _
)
'Usage
 
Dim dataFields As IEnumerable(Of DataField)
 
Dim instance As New UnionDataType(dataFields)
public UnionDataType( 
   IEnumerable<DataField> dataFields
)
public:
UnionDataType( 
   IEnumerable<DataField^>^ dataFields
)

Parameters

dataFields
A collection of data fields of the union data type.

The value of this parameter cannot be 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