# OpcDialogRespondCallback 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 respond on a dialog of a dialog condition node.

## Syntax

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

```csharp
public delegate OpcStatusCode OpcDialogRespondCallback(
    OpcNodeContext<OpcDialogConditionNode> context,
    int selectedResponse)
```

</div>

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

```vbnet
Public Delegate Function OpcDialogRespondCallback(
    context As OpcNodeContext(Of OpcDialogConditionNode),
    selectedResponse As Integer) As OpcStatusCode
```

</div>

## Parameters

| Name | Type | Description |
|---|---|---|
| `context` | [OpcNodeContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodecontext-1/)&lt;[OpcDialogConditionNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogconditionnode/)&gt; | The [OpcNodeContext&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodecontext-1/) to use to respond on the dialog of the dialog condition node. |
| `selectedResponse` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The selected index of the item in the [ResponseOptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogconditionnode/members#responseoptions). |

## 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 defines the outcome of the operation.

## Applies to

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