QuickOPC User's Guide and Reference
PrimitiveData Constructor(PrimitiveDataType,Object)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > PrimitiveData Class > PrimitiveData Constructor : PrimitiveData Constructor(PrimitiveDataType,Object)
The associated primitive data type.
The current primitive value.
Initializes a new instance of the class. Initializes a new instance of the class with given data type and value.
Syntax
'Declaration
 
Public Function New( _
   ByVal dataType As PrimitiveDataType, _
   ByVal value As Object _
)
'Usage
 
Dim dataType As PrimitiveDataType
Dim value As Object
 
Dim instance As New PrimitiveData(dataType, value)
public PrimitiveData( 
   PrimitiveDataType dataType,
   object value
)
public:
PrimitiveData( 
   PrimitiveDataType^ dataType,
   Object^ value
)

Parameters

dataType
The associated primitive data type.
value
The current primitive value.
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