Skip to content

Reference

OpcClient.CallMethods Method

Calls the methods as defined by the commands specified using a single call methods service request.

Reference

OpcClient.CallMethods Method ​

Type
OpcClient
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcClient Members
Also in
Opc.UaFx.Client

2 overloads · since v2.8

OverloadDescription
CallMethods(IEnumerable<OpcCallMethod>)since v2.8Calls the methods as defined by the commands specified using a single call methods service request.
CallMethods(params OpcCallMethod[])since v2.8Calls the methods as defined by the commands specified using a single call methods service request.

Exceptions (all overloads)

ExceptionCondition
OpcExceptionThe client is not connected to the server, the service execution failed or the server reported a bad status code for one of the calls or for one of their input arguments.
ObjectDisposedExceptionThe object has been disposed of.

CallMethods(IEnumerable<OpcCallMethod>) ​

since v2.8

Calls the methods as defined by the commands specified using a single call methods service request.

csharp
public object[][] CallMethods(IEnumerable<OpcCallMethod> commands)
vbnet
Public Function CallMethods(
    commands As IEnumerable(Of OpcCallMethod)) As Object()()

Parameters

NameTypeDescription
commandsIEnumerable<OpcCallMethod>A sequence of OpcCallMethod commands, each defining the object, the method and the values of the input arguments of a call.

Returns

Object[][]

An array which contains for each command, in the order of the commands, an array of the values of the output arguments returned by the method.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands sequence is a null reference (Nothing in Visual Basic).
LicenseExceptionThe license is expired.

CallMethods(params OpcCallMethod[]) ​

since v2.8

Calls the methods as defined by the commands specified using a single call methods service request.

csharp
public object[][] CallMethods(params OpcCallMethod[] commands)
vbnet
Public Function CallMethods(
    ParamArray commands As OpcCallMethod()) As Object()()

Parameters

NameTypeDescription
commandsparams OpcCallMethod[]An array of OpcCallMethod commands, each defining the object, the method and the values of the input arguments of a call.

Returns

Object[][]

An array which contains for each command, in the order of the commands, an array of the values of the output arguments returned by the method.

Exceptions

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