# OpcNodeFunc&lt;T&gt; Delegate

> Reference: Represents a method which performs an operation on a node of the type T and returns its outcome, e.g. the OneShotShelveCallback.

<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 on a node of the type `T` and returns its outcome, e.g. the [OneShotShelveCallback](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcalarmconditionnode/members#oneshotshelvecallback).

## Syntax

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

```csharp
public delegate OpcStatusCode OpcNodeFunc<T>(
    OpcNodeContext<T> context)
    where T : OpcNode
```

</div>

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

```vbnet
Public Delegate Function OpcNodeFunc(Of T As OpcNode)(
    context As OpcNodeContext(Of T)) As OpcStatusCode
```

</div>

## Type parameters

| Name | Description |
|---|---|
| `T` | The type of the node. |

## 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. |

## Returns

[OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/)

The [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) which specifies the outcome of the operation.

## Applies to

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