Skip to content

Reference

OpcClient.CallFunc Method

Calls the method identified by the methodId on the object identified by the objectId specified without any input arguments and returns the value of its first output argument.

Reference

OpcClient.CallFunc 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

9 overloads · since v2.8

OverloadDescription
CallFunc<TResult>(OpcNodeId, OpcNodeId)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified without any input arguments and returns the value of its first output argument.
CallFunc<T, TResult>(OpcNodeId, OpcNodeId, T)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified using the parameter as the value of its input argument and returns the value of its first output argument.
CallFunc<T1, T2, TResult>(OpcNodeId, OpcNodeId, T1, T2)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 and parameter2 as the values of its input arguments and returns the value of its first output argument.
CallFunc<T1, T2, T3, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter3 as the values of its input arguments and returns the value of its first output argument.
CallFunc<T1, T2, T3, T4, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter4 as the values of its input arguments and returns the value of its first output argument.
CallFunc<T1, T2, T3, T4, T5, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4, T5)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter5 as the values of its input arguments and returns the value of its first output argument.
CallFunc<T1, T2, T3, T4, T5, T6, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4, T5, T6)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter6 as the values of its input arguments and returns the value of its first output argument.
CallFunc<T1, T2, T3, T4, T5, T6, T7, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4, T5, T6, T7)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter7 as the values of its input arguments and returns the value of its first output argument.
CallFunc<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4, T5, T6, T7, T8)since v2.8Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter8 as the values of its input arguments and returns the value of its first output argument.

Exceptions (all overloads)

ExceptionCondition
ArgumentExceptionThe objectId is a null identifier (see IsNull).
ArgumentNullExceptionThe objectId or methodId is a null reference (Nothing in Visual Basic).
IndexOutOfRangeExceptionThe method did not return any output argument.
InvalidCastExceptionThe value of the first output argument cannot be cast to TResult.
OpcExceptionThe client is not connected to the server, the service execution failed or the server reported a bad status code for the call or for one of its input arguments.
ObjectDisposedExceptionThe object has been disposed of.

CallFunc<TResult>(OpcNodeId, OpcNodeId) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified without any input arguments and returns the value of its first output argument.

csharp
public TResult CallFunc<TResult>(OpcNodeId objectId, OpcNodeId methodId)
vbnet
Public Function CallFunc(Of TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId) As TResult

Type parameters

NameDescription
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.

CallFunc<T, TResult>(OpcNodeId, OpcNodeId, T) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified using the parameter as the value of its input argument and returns the value of its first output argument.

csharp
public TResult CallFunc<T, TResult>(
    OpcNodeId objectId,
    OpcNodeId methodId,
    T parameter)
vbnet
Public Function CallFunc(Of T, TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId,
    parameter As T) As TResult

Type parameters

NameDescription
TThe type of the parameter.
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.
parameterTThe value to pass as the input argument of the method.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.

CallFunc<T1, T2, TResult>(OpcNodeId, OpcNodeId, T1, T2) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 and parameter2 as the values of its input arguments and returns the value of its first output argument.

csharp
public TResult CallFunc<T1, T2, TResult>(
    OpcNodeId objectId,
    OpcNodeId methodId,
    T1 parameter1,
    T2 parameter2)
vbnet
Public Function CallFunc(Of T1, T2, TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId,
    parameter1 As T1,
    parameter2 As T2) As TResult

Type parameters

NameDescription
T1The type of the parameter1.
T2The type of the parameter2.
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.
parameter1T1The value to pass as the first input argument of the method.
parameter2T2The value to pass as the second input argument of the method.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.

CallFunc<T1, T2, T3, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter3 as the values of its input arguments and returns the value of its first output argument.

csharp
public TResult CallFunc<T1, T2, T3, TResult>(
    OpcNodeId objectId,
    OpcNodeId methodId,
    T1 parameter1,
    T2 parameter2,
    T3 parameter3)
vbnet
Public Function CallFunc(Of T1, T2, T3, TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId,
    parameter1 As T1,
    parameter2 As T2,
    parameter3 As T3) As TResult

Type parameters

NameDescription
T1The type of the parameter1.
T2The type of the parameter2.
T3The type of the parameter3.
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.
parameter1T1The value to pass as the first input argument of the method.
parameter2T2The value to pass as the second input argument of the method.
parameter3T3The value to pass as the third input argument of the method.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.

CallFunc<T1, T2, T3, T4, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter4 as the values of its input arguments and returns the value of its first output argument.

csharp
public TResult CallFunc<T1, T2, T3, T4, TResult>(
    OpcNodeId objectId,
    OpcNodeId methodId,
    T1 parameter1,
    T2 parameter2,
    T3 parameter3,
    T4 parameter4)
vbnet
Public Function CallFunc(Of T1, T2, T3, T4, TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId,
    parameter1 As T1,
    parameter2 As T2,
    parameter3 As T3,
    parameter4 As T4) As TResult

Type parameters

NameDescription
T1The type of the parameter1.
T2The type of the parameter2.
T3The type of the parameter3.
T4The type of the parameter4.
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.
parameter1T1The value to pass as the first input argument of the method.
parameter2T2The value to pass as the second input argument of the method.
parameter3T3The value to pass as the third input argument of the method.
parameter4T4The value to pass as the fourth input argument of the method.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.

CallFunc<T1, T2, T3, T4, T5, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4, T5) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter5 as the values of its input arguments and returns the value of its first output argument.

csharp
public TResult CallFunc<T1, T2, T3, T4, T5, TResult>(
    OpcNodeId objectId,
    OpcNodeId methodId,
    T1 parameter1,
    T2 parameter2,
    T3 parameter3,
    T4 parameter4,
    T5 parameter5)
vbnet
Public Function CallFunc(Of T1, T2, T3, T4, T5, TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId,
    parameter1 As T1,
    parameter2 As T2,
    parameter3 As T3,
    parameter4 As T4,
    parameter5 As T5) As TResult

Type parameters

NameDescription
T1The type of the parameter1.
T2The type of the parameter2.
T3The type of the parameter3.
T4The type of the parameter4.
T5The type of the parameter5.
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.
parameter1T1The value to pass as the first input argument of the method.
parameter2T2The value to pass as the second input argument of the method.
parameter3T3The value to pass as the third input argument of the method.
parameter4T4The value to pass as the fourth input argument of the method.
parameter5T5The value to pass as the fifth input argument of the method.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.

CallFunc<T1, T2, T3, T4, T5, T6, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4, T5, T6) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter6 as the values of its input arguments and returns the value of its first output argument.

csharp
public TResult CallFunc<T1, T2, T3, T4, T5, T6, TResult>(
    OpcNodeId objectId,
    OpcNodeId methodId,
    T1 parameter1,
    T2 parameter2,
    T3 parameter3,
    T4 parameter4,
    T5 parameter5,
    T6 parameter6)
vbnet
Public Function CallFunc(Of T1, T2, T3, T4, T5, T6, TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId,
    parameter1 As T1,
    parameter2 As T2,
    parameter3 As T3,
    parameter4 As T4,
    parameter5 As T5,
    parameter6 As T6) As TResult

Type parameters

NameDescription
T1The type of the parameter1.
T2The type of the parameter2.
T3The type of the parameter3.
T4The type of the parameter4.
T5The type of the parameter5.
T6The type of the parameter6.
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.
parameter1T1The value to pass as the first input argument of the method.
parameter2T2The value to pass as the second input argument of the method.
parameter3T3The value to pass as the third input argument of the method.
parameter4T4The value to pass as the fourth input argument of the method.
parameter5T5The value to pass as the fifth input argument of the method.
parameter6T6The value to pass as the sixth input argument of the method.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.

CallFunc<T1, T2, T3, T4, T5, T6, T7, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4, T5, T6, T7) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter7 as the values of its input arguments and returns the value of its first output argument.

csharp
public TResult CallFunc<T1, T2, T3, T4, T5, T6, T7, TResult>(
    OpcNodeId objectId,
    OpcNodeId methodId,
    T1 parameter1,
    T2 parameter2,
    T3 parameter3,
    T4 parameter4,
    T5 parameter5,
    T6 parameter6,
    T7 parameter7)
vbnet
Public Function CallFunc(Of T1, T2, T3, T4, T5, T6, T7, TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId,
    parameter1 As T1,
    parameter2 As T2,
    parameter3 As T3,
    parameter4 As T4,
    parameter5 As T5,
    parameter6 As T6,
    parameter7 As T7) As TResult

Type parameters

NameDescription
T1The type of the parameter1.
T2The type of the parameter2.
T3The type of the parameter3.
T4The type of the parameter4.
T5The type of the parameter5.
T6The type of the parameter6.
T7The type of the parameter7.
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.
parameter1T1The value to pass as the first input argument of the method.
parameter2T2The value to pass as the second input argument of the method.
parameter3T3The value to pass as the third input argument of the method.
parameter4T4The value to pass as the fourth input argument of the method.
parameter5T5The value to pass as the fifth input argument of the method.
parameter6T6The value to pass as the sixth input argument of the method.
parameter7T7The value to pass as the seventh input argument of the method.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.

CallFunc<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(OpcNodeId, OpcNodeId, T1, T2, T3, T4, T5, T6, T7, T8) ​

since v2.8

Calls the method identified by the methodId on the object identified by the objectId specified using the parameter1 to parameter8 as the values of its input arguments and returns the value of its first output argument.

csharp
public TResult CallFunc<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(
    OpcNodeId objectId,
    OpcNodeId methodId,
    T1 parameter1,
    T2 parameter2,
    T3 parameter3,
    T4 parameter4,
    T5 parameter5,
    T6 parameter6,
    T7 parameter7,
    T8 parameter8)
vbnet
Public Function CallFunc(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult)(
    objectId As OpcNodeId,
    methodId As OpcNodeId,
    parameter1 As T1,
    parameter2 As T2,
    parameter3 As T3,
    parameter4 As T4,
    parameter5 As T5,
    parameter6 As T6,
    parameter7 As T7,
    parameter8 As T8) As TResult

Type parameters

NameDescription
T1The type of the parameter1.
T2The type of the parameter2.
T3The type of the parameter3.
T4The type of the parameter4.
T5The type of the parameter5.
T6The type of the parameter6.
T7The type of the parameter7.
T8The type of the parameter8.
TResultThe type to which the value of the first output argument of the method is cast.

Parameters

NameTypeDescription
objectIdOpcNodeIdThe OpcNodeId of the object on which the method is to be called.
methodIdOpcNodeIdThe OpcNodeId of the method to call.
parameter1T1The value to pass as the first input argument of the method.
parameter2T2The value to pass as the second input argument of the method.
parameter3T3The value to pass as the third input argument of the method.
parameter4T4The value to pass as the fourth input argument of the method.
parameter5T5The value to pass as the fifth input argument of the method.
parameter6T6The value to pass as the sixth input argument of the method.
parameter7T7The value to pass as the seventh input argument of the method.
parameter8T8The value to pass as the eighth input argument of the method.

Returns

TResult

The value of the first output argument returned by the method, cast to TResult.