# OpcNodeAction&lt;T, T1, T2&gt; Delegate

> Reference: Represents a method which performs an operation with two arguments on a node of the type T.

<dl class="api-definition">
<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>

Represents a method which performs an operation with two arguments on a node of the type `T`.

## Syntax

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

```csharp
public delegate void OpcNodeAction<T, in T1, in T2>(
    OpcNodeContext<T> context,
    T1 arg1,
    T2 arg2)
    where T : OpcNode
```

</div>

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

```vbnet
Public Delegate Sub OpcNodeAction(Of T As OpcNode, In T1, In T2)(
    context As OpcNodeContext(Of T),
    arg1 As T1,
    arg2 As T2)
```

</div>

## Type parameters

| Name | Description |
|---|---|
| `T` | The type of the node. |
| `T1` | The type of the first argument. |
| `T2` | The type of the second argument. |

## Parameters

| Name | Type | Description |
|---|---|---|
| `context` | [OpcNodeContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodecontext-1/)&lt;T&gt; | The [OpcNodeContext&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodecontext-1/) of the node. |
| `arg1` | T1 | The first argument of the operation. |
| `arg2` | T2 | The second argument of the operation. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
