Reference
OpcMethodNode Members
Defines a method node.
Reference
OpcMethodNode Members
- Type
- OpcMethodNode
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Inherits members from OpcInstanceNode, OpcNode.
Constructors
OpcMethodNode
| Overload | Description |
|---|---|
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name specified with the Delegate call given by callback. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpccommand. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpccommand. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpccommand. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call given by callback. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpccommand. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpccommand. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpccommand. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name specified with the Delegate call given by callback as a child node of the parent node given. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpccommand as a child node of the parent node given. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpccommand as a child node of the parent node given. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpccommand as a child node of the parent node given. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call defined by callback as a child node of the parent node given. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpccommand as a child node of the parent node given. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpccommand as a child node of the parent node given. |
| OpcMethodNode( | Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpccommand as a child node of the parent node given. |
OpcMethodNode(OpcName, Delegate)
Initializes a new instance of the OpcMethodNode class accessible by the name specified with the Delegate call given by callback.
public OpcMethodNode(OpcName name, Delegate callback)Public Sub New(name As OpcName, callback As [Delegate])Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new method node can be accessed. |
callback | Delegate | The Delegate to call on method invokation of the new method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The callback is a null reference ( |
OpcMethodNode(OpcName, IOpcMethodCommand)
Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.
public OpcMethodNode(OpcName name, IOpcMethodCommand command)Public Sub New(name As OpcName, command As IOpcMethodCommand)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new method node can be accessed. |
command | IOpc | The IOpc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command is a null reference ( |
OpcMethodNode(OpcName, IOpcMethodCommand, params OpcArgument[])
Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.
public OpcMethodNode(
OpcName name,
IOpcMethodCommand command,
params OpcArgument[] inputArguments)Public Sub New(
name As OpcName,
command As IOpcMethodCommand,
ParamArray inputArguments As OpcArgument())Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new method node can be accessed. |
command | IOpc | The IOpc |
inputArguments | params OpcArgument[] | An array of OpcArgument instances representing the arguments consumed by the method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command or inputArguments ( |
OpcMethodNode(OpcName, IOpcMethodCommand, OpcArgument[], params OpcArgument[])
Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.
public OpcMethodNode(
OpcName name,
IOpcMethodCommand command,
OpcArgument[] inputArguments,
params OpcArgument[] outputArguments)Public Sub New(
name As OpcName,
command As IOpcMethodCommand,
inputArguments As OpcArgument(),
ParamArray outputArguments As OpcArgument())Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new method node can be accessed. |
command | IOpc | The IOpc |
inputArguments | OpcArgument[] | An array of OpcArgument instances representing the arguments consumed by the method node. |
outputArguments | params OpcArgument[] | An array of OpcArgument instances representing the arguments produced by the method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command, inputArguments (outputArguments ( |
OpcMethodNode(OpcName, OpcNodeId, Delegate)
Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call given by callback.
public OpcMethodNode(OpcName name, OpcNodeId id, Delegate callback)Public Sub New(name As OpcName, id As OpcNodeId, callback As [Delegate])Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new method node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new method node can be identified and accessed. |
callback | Delegate | The Delegate to call on method invokation of the new method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The callback is a null reference ( |
OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand)
Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.
public OpcMethodNode(OpcName name, OpcNodeId id, IOpcMethodCommand command)Public Sub New(name As OpcName, id As OpcNodeId, command As IOpcMethodCommand)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new method node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new method node can be identified and accessed. |
command | IOpc | The IOpc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command is a null reference ( |
OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand, params OpcArgument[])
Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.
public OpcMethodNode(
OpcName name,
OpcNodeId id,
IOpcMethodCommand command,
params OpcArgument[] inputArguments)Public Sub New(
name As OpcName,
id As OpcNodeId,
command As IOpcMethodCommand,
ParamArray inputArguments As OpcArgument())Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new method node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new method node can be identified and accessed. |
command | IOpc | The IOpc |
inputArguments | params OpcArgument[] | An array of OpcArgument instances representing the arguments consumed by the method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command or inputArguments ( |
OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand, OpcArgument[], params OpcArgument[])
Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.
public OpcMethodNode(
OpcName name,
OpcNodeId id,
IOpcMethodCommand command,
OpcArgument[] inputArguments,
params OpcArgument[] outputArguments)Public Sub New(
name As OpcName,
id As OpcNodeId,
command As IOpcMethodCommand,
inputArguments As OpcArgument(),
ParamArray outputArguments As OpcArgument())Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new method node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new method node can be identified and accessed. |
command | IOpc | The IOpc |
inputArguments | OpcArgument[] | An array of OpcArgument instances representing the arguments consumed by the method node. |
outputArguments | params OpcArgument[] | An array of OpcArgument instances representing the arguments produced by the method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command, inputArguments (outputArguments ( |
OpcMethodNode(IOpcNode, OpcName, Delegate)
Initializes a new instance of the OpcMethodNode class accessible by the name specified with the Delegate call given by callback as a child node of the parent node given.
public OpcMethodNode(IOpcNode parent, OpcName name, Delegate callback)Public Sub New(parent As IOpcNode, name As OpcName, callback As [Delegate])Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new method node can be accessed. |
callback | Delegate | The Delegate to call on method invokation of the new method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The callback is a null reference ( |
OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand)
Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.
public OpcMethodNode(IOpcNode parent, OpcName name, IOpcMethodCommand command)Public Sub New(
parent As IOpcNode,
name As OpcName,
command As IOpcMethodCommand)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new method node can be accessed. |
command | IOpc | The IOpc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command is a null reference ( |
OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand, params OpcArgument[])
Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.
public OpcMethodNode(
IOpcNode parent,
OpcName name,
IOpcMethodCommand command,
params OpcArgument[] inputArguments)Public Sub New(
parent As IOpcNode,
name As OpcName,
command As IOpcMethodCommand,
ParamArray inputArguments As OpcArgument())Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new method node can be accessed. |
command | IOpc | The IOpc |
inputArguments | params OpcArgument[] | An array of OpcArgument instances representing the arguments consumed by the method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command or inputArguments ( |
OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand, OpcArgument[], params OpcArgument[])
Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.
public OpcMethodNode(
IOpcNode parent,
OpcName name,
IOpcMethodCommand command,
OpcArgument[] inputArguments,
params OpcArgument[] outputArguments)Public Sub New(
parent As IOpcNode,
name As OpcName,
command As IOpcMethodCommand,
inputArguments As OpcArgument(),
ParamArray outputArguments As OpcArgument())Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new method node can be accessed. |
command | IOpc | The IOpc |
inputArguments | OpcArgument[] | An array of OpcArgument instances representing the arguments consumed by the method node. |
outputArguments | params OpcArgument[] | An array of OpcArgument instances representing the arguments produced by the method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command, inputArguments (outputArguments ( |
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, Delegate)
Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call defined by callback as a child node of the parent node given.
public OpcMethodNode(
IOpcNode parent,
OpcName name,
OpcNodeId id,
Delegate callback)Public Sub New(
parent As IOpcNode,
name As OpcName,
id As OpcNodeId,
callback As [Delegate])Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new method node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new method node can be identified and accessed. |
callback | Delegate | The Delegate to call on method invokation of the new method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The callback is a null reference ( |
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand)
Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.
public OpcMethodNode(
IOpcNode parent,
OpcName name,
OpcNodeId id,
IOpcMethodCommand command)Public Sub New(
parent As IOpcNode,
name As OpcName,
id As OpcNodeId,
command As IOpcMethodCommand)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new method node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new method node can be identified and accessed. |
command | IOpc | The IOpc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command is a null reference ( |
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand, params OpcArgument[])
Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.
public OpcMethodNode(
IOpcNode parent,
OpcName name,
OpcNodeId id,
IOpcMethodCommand command,
params OpcArgument[] inputArguments)Public Sub New(
parent As IOpcNode,
name As OpcName,
id As OpcNodeId,
command As IOpcMethodCommand,
ParamArray inputArguments As OpcArgument())Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new method node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new method node can be identified and accessed. |
command | IOpc | The IOpc |
inputArguments | params OpcArgument[] | An array of OpcArgument instances representing the arguments consumed by the method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command or inputArguments ( |
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand, OpcArgument[], params OpcArgument[])
Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.
public OpcMethodNode(
IOpcNode parent,
OpcName name,
OpcNodeId id,
IOpcMethodCommand command,
OpcArgument[] inputArguments,
params OpcArgument[] outputArguments)Public Sub New(
parent As IOpcNode,
name As OpcName,
id As OpcNodeId,
command As IOpcMethodCommand,
inputArguments As OpcArgument(),
ParamArray outputArguments As OpcArgument())Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new method node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new method node can be identified and accessed. |
command | IOpc | The IOpc |
inputArguments | OpcArgument[] | An array of OpcArgument instances representing the arguments consumed by the method node. |
outputArguments | params OpcArgument[] | An array of OpcArgument instances representing the arguments produced by the method node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command, inputArguments (outputArguments ( |
Properties
Callback
Gets the Delegate of the method to invoke in case there this method node is called.
public Delegate Callback { get; }Public ReadOnly Property Callback As [Delegate]Property value
The Delegate to invoke on method call or a null reference (Nothing in Visual Basic) if Command is used instead of a delegate.
CanExecute
Gets or sets a value indicating whether the method can be called.
public bool CanExecute { get; set; }Public Property CanExecute As BooleanProperty value
The value true if the method can be called; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Invalid | The property can't changed in case there Command is used for the current OpcMethodNode. |
CanUserExecute
Gets or sets a value indicating whether the method can be called by the current user.
public bool CanUserExecute { get; set; }Public Property CanUserExecute As BooleanProperty value
The value true if the method can be called by the current user; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Invalid | The property can't changed in case there Command is used for the current OpcMethodNode. |
Command
Gets the IOpcMethodCommand of the method to invoke in case there this method node is called.
public IOpcMethodCommand Command { get; set; }Public Property Command As IOpcMethodCommandProperty value
An instance implementing the IOpcMethodCommand interface through that the method call is to be handled or a null reference (Nothing in Visual Basic) if Callback is used instead of a command.
DefaultReferenceTypeId
Gets the default identifier which identifies the type that defines the underlying node reference within this OpcInstanceNode is referenced by its parent node.
protected override OpcNodeId DefaultReferenceTypeId { get; }Protected Overrides ReadOnly Property DefaultReferenceTypeId As OpcNodeIdProperty value
The OpcNodeId of the reference wihin this OpcInstanceNode is referenced. These reference defines the typical behaviour of an instance node and its role in the address space regarding its parent. If there exists no specific reference type a null reference (Nothing in Visual Basic).
Overrides
InputArguments
Gets a read-only collection of OpcArgument instances representing the arguments consumed by the method node.
public OpcReadOnlyArgumentCollection InputArguments { get; }Public ReadOnly Property InputArguments As OpcReadOnlyArgumentCollectionProperty value
An instance of the OpcReadOnlyArgumentCollection class with the OpcArgument instances used to define which arguments are consumed by the method node. In case there the collection is empty, the method does not accept any argument.
OutputArguments
Gets a read-only collection of OpcArgument instances representing the arguments produced by the method node.
public OpcReadOnlyArgumentCollection OutputArguments { get; }Public ReadOnly Property OutputArguments As OpcReadOnlyArgumentCollectionProperty value
An instance of the OpcReadOnlyArgumentCollection class with the OpcArgument instances used to define which arguments are produced by the method node. In case there the collection is empty, the method does not return any argument.
Methods
Call
Calls the method represented by this node on its parent node using the inputArguments specified.
public void Call(
OpcContext context,
List<object> inputArguments,
List<object> outputArguments)Public Sub [Call](
context As OpcContext,
inputArguments As List(Of Object),
outputArguments As List(Of Object))Parameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to call the method. |
inputArguments | List<Object> | The values of the input arguments in the order of the InputArguments. |
outputArguments | List<Object> | The list to which the values of the output arguments are added. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context, inputArguments or outputArguments is a null reference ( |
| OpcException | The call failed, e.inputArguments differs from the number of InputArguments, or with Bad |
InitializeDefaults
Initializes the default values used by the OpcInstanceNode.
protected override void InitializeDefaults()Protected Overrides Sub InitializeDefaults()Overrides
Remarks
This method is used to ensure the availability of appropriate node specific default values. For more information like when this method is to be overwritten see InitializeDefaults.
ReadAttributeValueCore
Determines the value of the attribute to read. In case there a Command is used, the command determines the value of the Executable and UserExecutable attributes; otherwise the value is determined as by the base class.
protected override OpcAttributeValue<T> ReadAttributeValueCore<T>(
OpcReadAttributeValueContext context,
OpcAttributeValue<T> value)Protected Overrides Function ReadAttributeValueCore(Of T)(
context As OpcReadAttributeValueContext,
value As OpcAttributeValue(Of T)) As OpcAttributeValue(Of T)Type parameters
| Name | Description |
|---|---|
T | The type of attribute value to read. |
Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
value | Opc | The preliminary Opc |
Returns
The determined OpcAttributeValue<T>.
Overrides
ReadAttributeValueCore<T>(OpcReadAttributeValueContext, OpcAttributeValue<T>)
WriteAttributeValueCore
Determines the value of the attribute to write. In case there a Command is used, no attribute can be written; otherwise the value is determined as by the base class.
protected override OpcAttributeValue<T> WriteAttributeValueCore<T>(
OpcWriteAttributeValueContext context,
OpcAttributeValue<T> value)Protected Overrides Function WriteAttributeValueCore(Of T)(
context As OpcWriteAttributeValueContext,
value As OpcAttributeValue(Of T)) As OpcAttributeValue(Of T)Type parameters
| Name | Description |
|---|---|
T | The type of attribute value to write. |
Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
value | Opc | The Opc |
Returns
The OpcAttributeValue<T> written.
Exceptions
| Exception | Condition |
|---|---|
| OpcException | A Command is used (Bad |
Overrides
WriteAttributeValueCore<T>(OpcWriteAttributeValueContext, OpcAttributeValue<T>)

