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
| Overload | Description |
|---|---|
| CallFunc< | 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. |
| CallFunc< | 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. |
| CallFunc< | 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. |
| CallFunc< | 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. |
| CallFunc< | 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. |
| CallFunc< | 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. |
| CallFunc< | 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. |
| CallFunc< | 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. |
| CallFunc< | 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. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The objectId is a null identifier ( |
| Argument | The objectId or methodId is a null reference ( |
| Index | The method did not return any output argument. |
| Invalid | The value of the first output argument cannot be cast to TResult. |
| OpcException | The 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. |
| Object | The object has been disposed of. |
CallFunc<TResult>(OpcNodeId, OpcNodeId)
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.
public TResult CallFunc<TResult>(OpcNodeId objectId, OpcNodeId methodId)Public Function CallFunc(Of TResult)(
objectId As OpcNodeId,
methodId As OpcNodeId) As TResultType parameters
| Name | Description |
|---|---|
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The 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)
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.
public TResult CallFunc<T, TResult>(
OpcNodeId objectId,
OpcNodeId methodId,
T parameter)Public Function CallFunc(Of T, TResult)(
objectId As OpcNodeId,
methodId As OpcNodeId,
parameter As T) As TResultType parameters
| Name | Description |
|---|---|
T | The type of the parameter. |
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The OpcNodeId of the method to call. |
parameter | T | The 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)
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.
public TResult CallFunc<T1, T2, TResult>(
OpcNodeId objectId,
OpcNodeId methodId,
T1 parameter1,
T2 parameter2)Public Function CallFunc(Of T1, T2, TResult)(
objectId As OpcNodeId,
methodId As OpcNodeId,
parameter1 As T1,
parameter2 As T2) As TResultType parameters
| Name | Description |
|---|---|
T1 | The type of the parameter1. |
T2 | The type of the parameter2. |
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The OpcNodeId of the method to call. |
parameter1 | T1 | The value to pass as the first input argument of the method. |
parameter2 | T2 | The 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)
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.
public TResult CallFunc<T1, T2, T3, TResult>(
OpcNodeId objectId,
OpcNodeId methodId,
T1 parameter1,
T2 parameter2,
T3 parameter3)Public Function CallFunc(Of T1, T2, T3, TResult)(
objectId As OpcNodeId,
methodId As OpcNodeId,
parameter1 As T1,
parameter2 As T2,
parameter3 As T3) As TResultType parameters
| Name | Description |
|---|---|
T1 | The type of the parameter1. |
T2 | The type of the parameter2. |
T3 | The type of the parameter3. |
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The OpcNodeId of the method to call. |
parameter1 | T1 | The value to pass as the first input argument of the method. |
parameter2 | T2 | The value to pass as the second input argument of the method. |
parameter3 | T3 | The 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)
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.
public TResult CallFunc<T1, T2, T3, T4, TResult>(
OpcNodeId objectId,
OpcNodeId methodId,
T1 parameter1,
T2 parameter2,
T3 parameter3,
T4 parameter4)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 TResultType parameters
| Name | Description |
|---|---|
T1 | The type of the parameter1. |
T2 | The type of the parameter2. |
T3 | The type of the parameter3. |
T4 | The type of the parameter4. |
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The OpcNodeId of the method to call. |
parameter1 | T1 | The value to pass as the first input argument of the method. |
parameter2 | T2 | The value to pass as the second input argument of the method. |
parameter3 | T3 | The value to pass as the third input argument of the method. |
parameter4 | T4 | The 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)
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.
public TResult CallFunc<T1, T2, T3, T4, T5, TResult>(
OpcNodeId objectId,
OpcNodeId methodId,
T1 parameter1,
T2 parameter2,
T3 parameter3,
T4 parameter4,
T5 parameter5)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 TResultType parameters
| Name | Description |
|---|---|
T1 | The type of the parameter1. |
T2 | The type of the parameter2. |
T3 | The type of the parameter3. |
T4 | The type of the parameter4. |
T5 | The type of the parameter5. |
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The OpcNodeId of the method to call. |
parameter1 | T1 | The value to pass as the first input argument of the method. |
parameter2 | T2 | The value to pass as the second input argument of the method. |
parameter3 | T3 | The value to pass as the third input argument of the method. |
parameter4 | T4 | The value to pass as the fourth input argument of the method. |
parameter5 | T5 | The 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)
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.
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)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 TResultType parameters
| Name | Description |
|---|---|
T1 | The type of the parameter1. |
T2 | The type of the parameter2. |
T3 | The type of the parameter3. |
T4 | The type of the parameter4. |
T5 | The type of the parameter5. |
T6 | The type of the parameter6. |
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The OpcNodeId of the method to call. |
parameter1 | T1 | The value to pass as the first input argument of the method. |
parameter2 | T2 | The value to pass as the second input argument of the method. |
parameter3 | T3 | The value to pass as the third input argument of the method. |
parameter4 | T4 | The value to pass as the fourth input argument of the method. |
parameter5 | T5 | The value to pass as the fifth input argument of the method. |
parameter6 | T6 | The 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)
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.
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)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 TResultType parameters
| Name | Description |
|---|---|
T1 | The type of the parameter1. |
T2 | The type of the parameter2. |
T3 | The type of the parameter3. |
T4 | The type of the parameter4. |
T5 | The type of the parameter5. |
T6 | The type of the parameter6. |
T7 | The type of the parameter7. |
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The OpcNodeId of the method to call. |
parameter1 | T1 | The value to pass as the first input argument of the method. |
parameter2 | T2 | The value to pass as the second input argument of the method. |
parameter3 | T3 | The value to pass as the third input argument of the method. |
parameter4 | T4 | The value to pass as the fourth input argument of the method. |
parameter5 | T5 | The value to pass as the fifth input argument of the method. |
parameter6 | T6 | The value to pass as the sixth input argument of the method. |
parameter7 | T7 | The 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)
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.
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)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 TResultType parameters
| Name | Description |
|---|---|
T1 | The type of the parameter1. |
T2 | The type of the parameter2. |
T3 | The type of the parameter3. |
T4 | The type of the parameter4. |
T5 | The type of the parameter5. |
T6 | The type of the parameter6. |
T7 | The type of the parameter7. |
T8 | The type of the parameter8. |
TResult | The type to which the value of the first output argument of the method is cast. |
Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object on which the method is to be called. |
methodId | OpcNodeId | The OpcNodeId of the method to call. |
parameter1 | T1 | The value to pass as the first input argument of the method. |
parameter2 | T2 | The value to pass as the second input argument of the method. |
parameter3 | T3 | The value to pass as the third input argument of the method. |
parameter4 | T4 | The value to pass as the fourth input argument of the method. |
parameter5 | T5 | The value to pass as the fifth input argument of the method. |
parameter6 | T6 | The value to pass as the sixth input argument of the method. |
parameter7 | T7 | The value to pass as the seventh input argument of the method. |
parameter8 | T8 | The 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.

