Reference
OpcReadNodesRequest Members
Represents the request of the Read service of OPC UA, which reads attributes of nodes.
Reference
OpcReadNodesRequest Members
- Type
- OpcReadNodesRequest
- Namespace
- Opc.UaFx.Services
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from OpcServiceRequest<OpcReadNode, OpcReadNodeCollection>, OpcServiceRequest.
Constructors
OpcReadNodesRequest
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opccommands and a new header. |
| Opc | Initializes a new instance of the Opccommands and a new header. |
| Opc | Initializes a new instance of the Opcheader and commands. |
| Opc | Initializes a new instance of the Opcheader and commands. |
OpcReadNodesRequest(IEnumerable<OpcReadNode>)
Initializes a new instance of the OpcReadNodesRequest class using the specified commands and a new header.
public OpcReadNodesRequest(IEnumerable<OpcReadNode> commands)Public Sub New(commands As IEnumerable(Of OpcReadNode))Parameters
| Name | Type | Description |
|---|---|---|
commands | IEnumerable<OpcReadNode> | The commands which specify the attributes to read. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The commands is a null reference ( |
OpcReadNodesRequest(params OpcReadNode[])
Initializes a new instance of the OpcReadNodesRequest class using the specified commands and a new header.
public OpcReadNodesRequest(params OpcReadNode[] commands)Public Sub New(ParamArray commands As OpcReadNode())Parameters
| Name | Type | Description |
|---|---|---|
commands | params OpcReadNode[] | The commands which specify the attributes to read. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The commands is a null reference ( |
OpcReadNodesRequest(IOpcServiceRequestHeader, IEnumerable<OpcReadNode>)
Initializes a new instance of the OpcReadNodesRequest class using the specified header and commands.
public OpcReadNodesRequest(
IOpcServiceRequestHeader header,
IEnumerable<OpcReadNode> commands)Public Sub New(
header As IOpcServiceRequestHeader,
commands As IEnumerable(Of OpcReadNode))Parameters
| Name | Type | Description |
|---|---|---|
header | IOpc | The header of the request. |
commands | IEnumerable<OpcReadNode> | The commands which specify the attributes to read. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The header or the commands is a null reference ( |
OpcReadNodesRequest(IOpcServiceRequestHeader, params OpcReadNode[])
Initializes a new instance of the OpcReadNodesRequest class using the specified header and commands.
public OpcReadNodesRequest(
IOpcServiceRequestHeader header,
params OpcReadNode[] commands)Public Sub New(
header As IOpcServiceRequestHeader,
ParamArray commands As OpcReadNode())Parameters
| Name | Type | Description |
|---|---|---|
header | IOpc | The header of the request. |
commands | params OpcReadNode[] | The commands which specify the attributes to read. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The header or the commands is a null reference ( |
Properties
MaxAge
Gets or sets the maximum age in milliseconds of the values to read.
public double MaxAge { get; set; }Public Property MaxAge As DoubleProperty value
The maximum age of a value a server may provide from its cache: 0 for a value read from the data source; the default value is 0.
TimestampsToReturn
Gets or sets which timestamps of the values are to be returned.
public OpcTimestampsToReturn TimestampsToReturn { get; set; }Public Property TimestampsToReturn As OpcTimestampsToReturnProperty value
One of the members defined by the OpcTimestampsToReturn enumeration; the default value is Both.
Methods
Validate
Validates the request before a server processes it.
protected override void Validate()Protected Overrides Sub Validate()Overrides
Remarks
A server rejects the request with BadNothingToDo if it contains no commands; then none of the commands is executed.

