# OpcDialogConditionNodeExtension Members

> Reference: Provides static (Shared in Visual Basic) extension methods to manage OpcDialogConditionNode objects.

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

## Methods

### Respond

<span class="api-meta">static</span>

Passes the `selectedResponse` option and ends the dialog of the `conditionNode` specified using the further specified `client`.

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

```csharp
public static void Respond(
    this OpcDialogConditionNode conditionNode,
    OpcClient client,
    int selectedResponse)
```

</div>

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

```vbnet
Public Shared Sub Respond(
    conditionNode As OpcDialogConditionNode,
    client As OpcClient,
    selectedResponse As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `conditionNode` | [OpcDialogConditionNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogconditionnode/) | The [OpcDialogConditionNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogconditionnode/) its 'Respond' method node is to be called. |
| `client` | [OpcClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/) | The [OpcClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/) to use to call the method. |
| `selectedResponse` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | Selected index of the [ResponseOptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogconditionnode/members#responseoptions) of the `conditionNode` specified. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `conditionNode` or `client` is a null reference (Nothing in Visual Basic). |
| [OpcException](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcexception/) | The call of the method node failed (see exception details for more information). |
