# OpcDialogRequestedEventArgs Members

> Reference: Provides the event data for the DialogRequested event.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcDialogRequestedEventArgs</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>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Inherits members from [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs).

## Constructors

### OpcDialogRequestedEventArgs

Initializes a new instance of the [OpcDialogRequestedEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdialogrequestedeventargs/) class using the specified `dialog`.

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

```csharp
public OpcDialogRequestedEventArgs(OpcDialogCondition dialog)
```

</div>

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

```vbnet
Public Sub New(dialog As OpcDialogCondition)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `dialog` | [OpcDialogCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/) | The [OpcDialogCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/) which is requesting the dialog. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `dialog` is a null reference (Nothing in Visual Basic). |

## Properties

### Dialog

Gets the data of the event which is requesting the dialog.

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

```csharp
public OpcDialogCondition Dialog { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Dialog As OpcDialogCondition
```

</div>

**Property value**

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

The [OpcDialogCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/) representing the dialog event information.

### SelectedResponse

Gets or sets the index of the response option selected.

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

```csharp
public int SelectedResponse { get; set; }
```

</div>

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

```vbnet
Public Property SelectedResponse As Integer
```

</div>

**Property value**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

The index of one of the [ResponseOptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdialogcondition/members#responseoptions) supported by the [Dialog](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdialogrequestedeventargs/members#dialog) or -1 if there is no response option selected. The value -1 is the default value.
