Reference
OpcClient.CallMethod Method
Calls the method as defined by the command specified.
Reference
OpcClient.CallMethod 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 |
|---|---|
| CallMethod( | Calls the method identified by the methodId on the object identified by the objectId specified without any input arguments. |
| CallMethod( | Calls the method identified by the methodId on the object identified by the objectId specified using the parameters as the values of its input arguments. |
| CallMethod( | Calls the method identified by the methodId on the object identified by the objectId specified using the parameters as the values of its input arguments. |
| CallMethod( | Calls the method as defined by the command specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| 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. |
CallMethod(OpcNodeId, OpcNodeId)
Calls the method identified by the methodId on the object identified by the objectId specified without any input arguments.
public object[] CallMethod(OpcNodeId objectId, OpcNodeId methodId)Public Function CallMethod(
objectId As OpcNodeId,
methodId As OpcNodeId) As Object()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
Object[]
An array of the values of the output arguments returned by the method.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The objectId is a null identifier ( |
| Argument | The objectId or methodId is a null reference ( |
CallMethod(OpcNodeId, OpcNodeId, IEnumerable<object>)
Calls the method identified by the methodId on the object identified by the objectId specified using the parameters as the values of its input arguments.
public object[] CallMethod(
OpcNodeId objectId,
OpcNodeId methodId,
IEnumerable<object> parameters)Public Function CallMethod(
objectId As OpcNodeId,
methodId As OpcNodeId,
parameters As IEnumerable(Of Object)) As Object()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. |
parameters | IEnumerable<Object> | A sequence of the values to pass as the input arguments of the method. |
Returns
Object[]
An array of the values of the output arguments returned by the method.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The objectId is a null identifier ( |
| Argument | The objectId, methodId or parameters is a null reference ( |
CallMethod(OpcNodeId, OpcNodeId, params object[])
Calls the method identified by the methodId on the object identified by the objectId specified using the parameters as the values of its input arguments.
public object[] CallMethod(
OpcNodeId objectId,
OpcNodeId methodId,
params object[] parameters)Public Function CallMethod(
objectId As OpcNodeId,
methodId As OpcNodeId,
ParamArray parameters As Object()) As Object()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. |
parameters | params Object[] | An array of the values to pass as the input arguments of the method. |
Returns
Object[]
An array of the values of the output arguments returned by the method.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The objectId is a null identifier ( |
| Argument | The objectId, methodId or parameters is a null reference ( |
CallMethod(OpcCallMethod)
Calls the method as defined by the command specified.
public object[] CallMethod(OpcCallMethod command)Public Function CallMethod(command As OpcCallMethod) As Object()Parameters
| Name | Type | Description |
|---|---|---|
command | OpcCallMethod | The OpcCallMethod command which defines the object, the method and the values of the input arguments of the call. |
Returns
Object[]
An array of the values of the output arguments returned by the method.

