Skip to content

Reference

OpcMethodNode Members

Defines a generic method node.

Reference

OpcMethodNode<T> Members ​

Type
OpcMethodNode<T>
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcMethodNode, OpcInstanceNode, OpcNode.

Constructors ​

OpcMethodNode ​

4 overloads

OverloadDescription
OpcMethodNode(OpcName, T)Initializes a new instance of the OpcMethodNode<T> class accessible by the name specified with the T call given by callback.
OpcMethodNode(OpcName, OpcNodeId, T)Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call given by callback.
OpcMethodNode(IOpcNode, OpcName, T)Initializes a new instance of the OpcMethodNode class accessible by the name specified with the T call given by callback as a child node of the parent node given.
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, T)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.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe callback is a null reference (Nothing in Visual Basic).

OpcMethodNode(OpcName, T) ​

Initializes a new instance of the OpcMethodNode<T> class accessible by the name specified with the T call given by callback.

csharp
public OpcMethodNode(OpcName name, T callback)
vbnet
Public Sub New(name As OpcName, callback As T)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
callbackTThe T to call on method invokation of the new method node.

OpcMethodNode(OpcName, OpcNodeId, T) ​

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call given by callback.

csharp
public OpcMethodNode(OpcName name, OpcNodeId id, T callback)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId, callback As T)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
callbackTThe T to call on method invokation of the new method node.

OpcMethodNode(IOpcNode, OpcName, T) ​

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the T call given by callback as a child node of the parent node given.

csharp
public OpcMethodNode(IOpcNode parent, OpcName name, T callback)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, callback As T)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
callbackTThe T to call on method invokation of the new method node.

OpcMethodNode(IOpcNode, OpcName, OpcNodeId, T) ​

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.

csharp
public OpcMethodNode(IOpcNode parent, OpcName name, OpcNodeId id, T callback)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    callback As T)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
callbackTThe T to call on method invokation of the new method node.

Properties ​

Callback ​

Gets or sets the T of the method to invoke in case there this method node is called.

csharp
public T Callback { get; set; }
vbnet
Public Property Callback As T

Property value

T

The T to invoke on method call.