# OpcReadVariableValueCallback Delegate

<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 the method that will read the value of a variable node.

## Syntax

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

```csharp
public delegate OpcVariableValue<object> OpcReadVariableValueCallback(
    OpcReadVariableValueContext context,
    OpcVariableValue<object> value)
```

</div>

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

```vbnet
Public Delegate Function OpcReadVariableValueCallback(
    context As OpcReadVariableValueContext,
    value As OpcVariableValue(Of Object)) As OpcVariableValue(Of Object)
```

</div>

## Parameters

| Name | Type | Description |
|---|---|---|
| `context` | [OpcReadVariableValueContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreadvariablevaluecontext/) | The [OpcReadVariableValueContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreadvariablevaluecontext/) to use to read the variable value. |
| `value` | [OpcVariableValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariablevalue-1/)&lt;[Object](https://learn.microsoft.com/dotnet/api/system.object)&gt; | The preliminary [OpcVariableValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariablevalue-1/). |

## Returns

[OpcVariableValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariablevalue-1/)&lt;[Object](https://learn.microsoft.com/dotnet/api/system.object)&gt;

The determined [OpcVariableValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariablevalue-1/).

## Applies to

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