Reference
OpcCallMethod Members
Defines a single command of the IOpcCallMethodsService.
Reference
OpcCallMethod Members
- Type
- OpcCallMethod
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from OpcNodeServiceCommand, OpcServiceCommand.
Constructors
OpcCallMethod
| Overload | Description |
|---|---|
| OpcCallMethod( | Initializes a new instance of the OpcCallMethod class using the specified objectId and methodId to call the method without parameters. |
| OpcCallMethod( | Initializes a new instance of the OpcCallMethod class using the specified objectId, methodId and parameters. |
| OpcCallMethod( | Initializes a new instance of the OpcCallMethod class using the specified objectId, methodId and parameters. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The objectId is a null identifier ( |
OpcCallMethod(OpcNodeId, OpcNodeId)
Initializes a new instance of the OpcCallMethod class using the specified objectId and methodId to call the method without parameters.
public OpcCallMethod(OpcNodeId objectId, OpcNodeId methodId)Public Sub New(objectId As OpcNodeId, methodId As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object node or object type node which provides the method. |
methodId | OpcNodeId | The OpcNodeId of the method node to call. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The objectId or methodId is a null reference ( |
OpcCallMethod(OpcNodeId, OpcNodeId, IEnumerable<object>)
Initializes a new instance of the OpcCallMethod class using the specified objectId, methodId and parameters.
public OpcCallMethod(
OpcNodeId objectId,
OpcNodeId methodId,
IEnumerable<object> parameters)Public Sub New(
objectId As OpcNodeId,
methodId As OpcNodeId,
parameters As IEnumerable(Of Object))Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object node or object type node which provides the method. |
methodId | OpcNodeId | The OpcNodeId of the method node to call. |
parameters | IEnumerable<Object> | The values of the input arguments of the method in their order. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The objectId, methodId or parameters is a null reference ( |
Remarks
The command does not copy the parameters; they are enumerated when the command is executed and when Parameters is read.
OpcCallMethod(OpcNodeId, OpcNodeId, params object[])
Initializes a new instance of the OpcCallMethod class using the specified objectId, methodId and parameters.
public OpcCallMethod(
OpcNodeId objectId,
OpcNodeId methodId,
params object[] parameters)Public Sub New(
objectId As OpcNodeId,
methodId As OpcNodeId,
ParamArray parameters As Object())Parameters
| Name | Type | Description |
|---|---|---|
objectId | OpcNodeId | The OpcNodeId of the object node or object type node which provides the method. |
methodId | OpcNodeId | The OpcNodeId of the method node to call. |
parameters | params Object[] | The values of the input arguments of the method in their order. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The objectId, methodId or parameters is a null reference ( |
Remarks
The command does not copy the parameters, so that changes of the array are applied to the command.
Properties
MethodId
Gets the identifier of the method node to call.
public OpcNodeId MethodId { get; }Public ReadOnly Property MethodId As OpcNodeIdProperty value
The OpcNodeId of the method node to call.
ObjectId
Gets the identifier of the node which provides the method to call.
public OpcNodeId ObjectId { get; }Public ReadOnly Property ObjectId As OpcNodeIdProperty value
The OpcNodeId of the object node or object type node which provides the method.
Parameters
Gets the values of the input arguments of the method.
public IEnumerable<object> Parameters { get; }Public ReadOnly Property Parameters As IEnumerable(Of Object)Property value
A new array of the values of the input arguments of the method in their order.

