OPC Studio User's Guide and Reference
DAItemPointReadParameters Constructor(DAReadParameters,Boolean)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.Connectivity Namespace > DAItemPointReadParameters Class > DAItemPointReadParameters Constructor : DAItemPointReadParameters Constructor(DAReadParameters,Boolean)
The read parameters to use.

Because the OpcLabs.EasyOpc.DataAccess.DAReadParameters has an implicit conversion from System.Int32 and OpcLabs.EasyOpc.DataAccess.DADataSource, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use an integer (representing the value age in milliseconds), or an element of the OpcLabs.EasyOpc.DataAccess.DADataSource enumeration in place of this parameter, and the corresponding OPC DA read parameters object will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.DataAccess.DAReadParameters.DAReadParameters Constructor(Int32) or OpcLabs.EasyOpc.DataAccess.DAReadParameters.DAReadParameters Constructor(DADataSource) constructor instead.

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

Determines whether only the value part will be read; error if the value is not available.
Creates a new instance of the object, from OpcLabs.EasyOpc.DataAccess.DAReadParameters, and "value only" indicator.
Syntax
'Declaration
 
Public Function New( _
   ByVal readParameters As DAReadParameters, _
   ByVal valueOnly As Boolean _
)
'Usage
 
Dim readParameters As DAReadParameters
Dim valueOnly As Boolean
 
Dim instance As New DAItemPointReadParameters(readParameters, valueOnly)
public DAItemPointReadParameters( 
   DAReadParameters readParameters,
   bool valueOnly
)
public:
DAItemPointReadParameters( 
   DAReadParameters^ readParameters,
   bool valueOnly
)

Parameters

readParameters
The read parameters to use.

Because the OpcLabs.EasyOpc.DataAccess.DAReadParameters has an implicit conversion from System.Int32 and OpcLabs.EasyOpc.DataAccess.DADataSource, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use an integer (representing the value age in milliseconds), or an element of the OpcLabs.EasyOpc.DataAccess.DADataSource enumeration in place of this parameter, and the corresponding OPC DA read parameters object will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.DataAccess.DAReadParameters.DAReadParameters Constructor(Int32) or OpcLabs.EasyOpc.DataAccess.DAReadParameters.DAReadParameters Constructor(DADataSource) constructor instead.

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

valueOnly
Determines whether only the value part will be read; error if the value is not available.
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