# OpcDialogCondition Class

<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>
<dt>Members</dt>
<dd><a href="./members">OpcDialogCondition Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Represents a snapshot of a 'Opc.UaFx.OpcDialogConditionNode'.

## Syntax

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

```csharp
public class OpcDialogCondition : OpcCondition
```

</div>

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

```vbnet
Public Class OpcDialogCondition
    Inherits OpcCondition
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcEvent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcevent/) → [OpcCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccondition/) → **OpcDialogCondition**

## Constructors

| Name | Description |
|---|---|
| [OpcDialogCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#opcdialogcondition)<span class="api-meta">since v2.8</span> | Initializes a new instance of the OpcDialogCondition class using the `dataStore` specified. |

## Properties

| Name | Description |
|---|---|
| [CancelResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#cancelresponse) | Gets a value which defines the index of the response in the [ResponseOptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#responseoptions) array that will cause the dialog to go into the inactive state without proceeding with the operation described by the prompt. |
| [DefaultResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#defaultresponse) | Gets a value which identifies the response option that should be shown as default to the user. |
| [IsActive](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#isactive) | Gets a value indicating whether the dialog is active and is waiting for a response. |
| [LastResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#lastresponse) | Gets a value which defines the last response provided by a client in the respond method. |
| [OkResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#okresponse) | Gets a value which defines the index of the OK option in the [ResponseOptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#responseoptions) array. |
| [Prompt](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#prompt) | Gets the dialog prompt to be shown to the user. |
| [ResponseOptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#responseoptions) | Gets an array of supported response options. |

Inherits members from [OpcCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccondition/members), [OpcEvent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcevent/members).

## Extension methods

| Name | Description |
|---|---|
| [OpcConditionExtension.AddComment](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcconditionextension/members#addcomment) | Applies a comment to the state reported by an event notification which can be identified by the [EventId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcevent/members#eventid) of the `condition` specified using the further specified `client`. |
| [OpcConditionExtension.Disable](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcconditionextension/members#disable) | Changes the condition state to 'Disabled' of the `condition` specified using the further specified `client`. |
| [OpcConditionExtension.Enable](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcconditionextension/members#enable) | Changes the condition state to 'Enabled' of the `condition` specified using the further specified `client`. |
| [OpcDialogConditionExtension.Respond](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdialogconditionextension/members#respond) | Passes the `selectedResponse` option and ends the dialog of the `condition` specified using the further specified `client`. |

## Applies to

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