# OpcActionMethodNode Members

> Reference: Defines a method node using a Action delegate.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcActionMethodNode</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
</dl>

Inherits members from [OpcMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodnode/members), [OpcInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcinstancenode/members), [OpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnode/members).

## Constructors

### OpcActionMethodNode

<span class="api-meta">8 overloads</span>

| Overload | Description |
|---|---|
| [OpcActionMethodNode(OpcName, Action)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/members#opcactionmethodnode-opc-uafx-opcname-system-action) | Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` specified with the [Action](https://learn.microsoft.com/dotnet/api/system.action) call given by `callback`. |
| [OpcActionMethodNode(OpcName, Action&lt;OpcMethodContext&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/members#opcactionmethodnode-opc-uafx-opcname-system-action-of-opc-uafx-opcmethodcontext) | Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` specified with the [Action&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.action-1) call given by `callback`. |
| [OpcActionMethodNode(OpcName, OpcNodeId, Action)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/members#opcactionmethodnode-opc-uafx-opcname-opc-uafx-opcnodeid-system-action) | Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` and `id` specified with the delegate to call given by `callback`. |
| [OpcActionMethodNode(OpcName, OpcNodeId, Action&lt;OpcMethodContext&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/members#opcactionmethodnode-opc-uafx-opcname-opc-uafx-opcnodeid-system-action-of-opc-uafx-opcmethodcontext) | Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` and `id` specified with the delegate to call given by `callback`. |
| [OpcActionMethodNode(IOpcNode, OpcName, Action)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/members#opcactionmethodnode-opc-uafx-iopcnode-opc-uafx-opcname-system-action) | Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` specified with the [Action](https://learn.microsoft.com/dotnet/api/system.action) call given by `callback` as a child node of the `parent` node given. |
| [OpcActionMethodNode(IOpcNode, OpcName, Action&lt;OpcMethodContext&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/members#opcactionmethodnode-opc-uafx-iopcnode-opc-uafx-opcname-system-action-of-opc-uafx-opcmethodcontext) | Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` specified with the [Action&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.action-1) call given by `callback` as a child node of the `parent` node given. |
| [OpcActionMethodNode(IOpcNode, OpcName, OpcNodeId, Action)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/members#opcactionmethodnode-opc-uafx-iopcnode-opc-uafx-opcname-opc-uafx-opcnodeid-system-action) | Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) 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. |
| [OpcActionMethodNode(IOpcNode, OpcName, OpcNodeId, Action&lt;OpcMethodContext&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/members#opcactionmethodnode-opc-uafx-iopcnode-opc-uafx-opcname-opc-uafx-opcnodeid-system-action-of-opc-uafx-opcmethodcontext) | Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) 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. |

#### OpcActionMethodNode(OpcName, Action)

Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` specified with the [Action](https://learn.microsoft.com/dotnet/api/system.action) call given by `callback`.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcActionMethodNode(OpcName name, Action callback)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(name As OpcName, callback As Action)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new action method node can be accessed. |
| `callback` | [Action](https://learn.microsoft.com/dotnet/api/system.action) | The [Action](https://learn.microsoft.com/dotnet/api/system.action) to call on method invokation of the new action method node. |

#### OpcActionMethodNode(OpcName, Action&lt;OpcMethodContext&gt;)

Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` specified with the [Action&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.action-1) call given by `callback`.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcActionMethodNode(OpcName name, Action<OpcMethodContext> callback)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(name As OpcName, callback As Action(Of OpcMethodContext))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new action method node can be accessed. |
| `callback` | [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[OpcMethodContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/)&gt; | The [Action&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.action-1) to call on method invokation of the new action method node. |

#### OpcActionMethodNode(OpcName, OpcNodeId, Action)

Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` and `id` specified with the delegate to call given by `callback`.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcActionMethodNode(OpcName name, OpcNodeId id, Action callback)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(name As OpcName, id As OpcNodeId, callback As Action)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new action method node can be accessed. |
| `id` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) through that the new action method node can be identified and accessed. |
| `callback` | [Action](https://learn.microsoft.com/dotnet/api/system.action) | The [Action](https://learn.microsoft.com/dotnet/api/system.action) to call on method invokation of the new action method node. |

#### OpcActionMethodNode(OpcName, OpcNodeId, Action&lt;OpcMethodContext&gt;)

Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` and `id` specified with the delegate to call given by `callback`.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcActionMethodNode(
    OpcName name,
    OpcNodeId id,
    Action<OpcMethodContext> callback)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    name As OpcName,
    id As OpcNodeId,
    callback As Action(Of OpcMethodContext))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new action method node can be accessed. |
| `id` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) through that the new action method node can be identified and accessed. |
| `callback` | [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[OpcMethodContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/)&gt; | The [Action&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.action-1) to call on method invokation of the new action method node. |

#### OpcActionMethodNode(IOpcNode, OpcName, Action)

Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` specified with the [Action](https://learn.microsoft.com/dotnet/api/system.action) call given by `callback` as a child node of the `parent` node given.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcActionMethodNode(IOpcNode parent, OpcName name, Action callback)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(parent As IOpcNode, name As OpcName, callback As Action)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `parent` | [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) | The [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new action method node can be accessed. |
| `callback` | [Action](https://learn.microsoft.com/dotnet/api/system.action) | The [Action](https://learn.microsoft.com/dotnet/api/system.action) to call on method invokation of the new action method node. |

#### OpcActionMethodNode(IOpcNode, OpcName, Action&lt;OpcMethodContext&gt;)

Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) class accessible by the `name` specified with the [Action&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.action-1) call given by `callback` as a child node of the `parent` node given.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcActionMethodNode(
    IOpcNode parent,
    OpcName name,
    Action<OpcMethodContext> callback)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    callback As Action(Of OpcMethodContext))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `parent` | [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) | The [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new action method node can be accessed. |
| `callback` | [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[OpcMethodContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/)&gt; | The [Action&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.action-1) to call on method invokation of the new action method node. |

#### OpcActionMethodNode(IOpcNode, OpcName, OpcNodeId, Action)

Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) 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.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcActionMethodNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    Action callback)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    callback As Action)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `parent` | [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) | The [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new action method node can be accessed. |
| `id` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) through that the new action method node can be identified and accessed. |
| `callback` | [Action](https://learn.microsoft.com/dotnet/api/system.action) | The [Action](https://learn.microsoft.com/dotnet/api/system.action) to call on method invokation of the new action method node. |

#### OpcActionMethodNode(IOpcNode, OpcName, OpcNodeId, Action&lt;OpcMethodContext&gt;)

Initializes a new instance of the [OpcActionMethodNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcactionmethodnode/) 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.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcActionMethodNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    Action<OpcMethodContext> callback)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    callback As Action(Of OpcMethodContext))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `parent` | [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) | The [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new action method node can be accessed. |
| `id` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) through that the new action method node can be identified and accessed. |
| `callback` | [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[OpcMethodContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/)&gt; | The [Action&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.action-1) to call on method invokation of the new action method node. |
