Skip to content

Reference

OpcCallMethodsRequest Members

Represents the request of the Call service of OPC UA, which calls methods.

Reference

OpcCallMethodsRequest Members ​

Type
OpcCallMethodsRequest
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<OpcCallMethod, OpcCallMethodCollection>, OpcServiceRequest.

Constructors ​

OpcCallMethodsRequest ​

4 overloads · since v2.8

OverloadDescription
OpcCallMethodsRequest(IEnumerable<OpcCallMethod>)since v2.8Initializes a new instance of the OpcCallMethodsRequest class using the specified commands and a new header.
OpcCallMethodsRequest(params OpcCallMethod[])since v2.8Initializes a new instance of the OpcCallMethodsRequest class using the specified commands and a new header.
OpcCallMethodsRequest(IOpcServiceRequestHeader, IEnumerable<OpcCallMethod>)since v2.8Initializes a new instance of the OpcCallMethodsRequest class using the specified header and commands.
OpcCallMethodsRequest(IOpcServiceRequestHeader, params OpcCallMethod[])since v2.8Initializes a new instance of the OpcCallMethodsRequest class using the specified header and commands.

OpcCallMethodsRequest(IEnumerable<OpcCallMethod>) ​

since v2.8

Initializes a new instance of the OpcCallMethodsRequest class using the specified commands and a new header.

csharp
public OpcCallMethodsRequest(IEnumerable<OpcCallMethod> commands)
vbnet
Public Sub New(commands As IEnumerable(Of OpcCallMethod))

Parameters

NameTypeDescription
commandsIEnumerable<OpcCallMethod>The commands which specify the methods to call and their input arguments.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands is a null reference (Nothing in Visual Basic).

OpcCallMethodsRequest(params OpcCallMethod[]) ​

since v2.8

Initializes a new instance of the OpcCallMethodsRequest class using the specified commands and a new header.

csharp
public OpcCallMethodsRequest(params OpcCallMethod[] commands)
vbnet
Public Sub New(ParamArray commands As OpcCallMethod())

Parameters

NameTypeDescription
commandsparams OpcCallMethod[]The commands which specify the methods to call and their input arguments.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands is a null reference (Nothing in Visual Basic).

OpcCallMethodsRequest(IOpcServiceRequestHeader, IEnumerable<OpcCallMethod>) ​

since v2.8

Initializes a new instance of the OpcCallMethodsRequest class using the specified header and commands.

csharp
public OpcCallMethodsRequest(
    IOpcServiceRequestHeader header,
    IEnumerable<OpcCallMethod> commands)
vbnet
Public Sub New(
    header As IOpcServiceRequestHeader,
    commands As IEnumerable(Of OpcCallMethod))

Parameters

NameTypeDescription
headerIOpcServiceRequestHeaderThe header of the request.
commandsIEnumerable<OpcCallMethod>The commands which specify the methods to call and their input arguments.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe header or the commands is a null reference (Nothing in Visual Basic).

OpcCallMethodsRequest(IOpcServiceRequestHeader, params OpcCallMethod[]) ​

since v2.8

Initializes a new instance of the OpcCallMethodsRequest class using the specified header and commands.

csharp
public OpcCallMethodsRequest(
    IOpcServiceRequestHeader header,
    params OpcCallMethod[] commands)
vbnet
Public Sub New(
    header As IOpcServiceRequestHeader,
    ParamArray commands As OpcCallMethod())

Parameters

NameTypeDescription
headerIOpcServiceRequestHeaderThe header of the request.
commandsparams OpcCallMethod[]The commands which specify the methods to call and their input arguments.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe header or the commands is a null reference (Nothing in Visual Basic).

Methods ​

Validate ​

protected · override · since v2.50

Validates the request before a server processes it.

csharp
protected override void Validate()
vbnet
Protected Overrides Sub Validate()

Overrides

Validate

Remarks

A server rejects the request with BadNothingToDo if it contains no commands or if the ObjectId or the MethodId of a command is a null identifier; then none of the commands is executed.