QuickOPC User's Guide and Reference
DataField Constructor(String,DataType)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > DataField Class > DataField Constructor : DataField Constructor(String,DataType)
Initializes a new instance of the class. Initializes a new data field with given name and data type.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal dataType As DataType _
)
'Usage
 
Dim name As String
Dim dataType As DataType
 
Dim instance As New DataField(name, dataType)
public DataField( 
   string name,
   DataType dataType
)
public:
DataField( 
   String^ name,
   DataType^ dataType
)

Parameters

name
dataType
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