# OpcRequestJudgementEventArgs Members

> Reference: Provides the event data for 'RequestJudgement' events.

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

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

## Constructors

### OpcRequestJudgementEventArgs

Initializes a new instance of the [OpcRequestJudgementEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/) class using the event data specified.

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

```csharp
public OpcRequestJudgementEventArgs(
    OpcServiceRequest impeachedRequest,
    OpcRequestImpeachment impeachment,
    OpcResult impeachmentInfo)
```

</div>

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

```vbnet
Public Sub New(
    impeachedRequest As OpcServiceRequest,
    impeachment As OpcRequestImpeachment,
    impeachmentInfo As OpcResult)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `impeachedRequest` | [OpcServiceRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicerequest/) | The [OpcServiceRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicerequest/) instance providing the impeached request. |
| `impeachment` | [OpcRequestImpeachment](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestimpeachment/) | The kind of impeachement the impeached request is confronted with. |
| `impeachmentInfo` | [OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/) | The [OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/) which provides additional information about the `impeachment`. This information is also used in case of an non-dismissed judgement for an exception. |

**Exceptions**

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

## Properties

### Dismiss

Gets or sets a value indicating whether the impeachment of the [ImpeachedRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/members#impeachedrequest) is to be rejected independent from the [Impeachment](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/members#impeachment) of the request judgement.

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

```csharp
public bool Dismiss { get; set; }
```

</div>

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

```vbnet
Public Property Dismiss As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true to reject the impeachment of the [ImpeachedRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/members#impeachedrequest); otherwise the value false. The default value is false.

### ImpeachedRequest

Gets the Request which is impeached.

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

```csharp
public OpcServiceRequest ImpeachedRequest { get; }
```

</div>

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

```vbnet
Public ReadOnly Property ImpeachedRequest As OpcServiceRequest
```

</div>

**Property value**

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

An instance of the [OpcServiceRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicerequest/) class representing the request which is impeached.

### Impeachment

Gets a value indicating the kind of impeachment the [ImpeachedRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/members#impeachedrequest) is confronted with.

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

```csharp
public OpcRequestImpeachment Impeachment { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Impeachment As OpcRequestImpeachment
```

</div>

**Property value**

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

One of the members defined by the [OpcRequestImpeachment](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestimpeachment/) enumeration.

### ImpeachmentInfo

Gets the information used to represent the [Impeachment](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/members#impeachment) in case there an exception is to be thrown.

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

```csharp
public OpcResult ImpeachmentInfo { get; }
```

</div>

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

```vbnet
Public ReadOnly Property ImpeachmentInfo As OpcResult
```

</div>

**Property value**

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

The information associated with the [Impeachment](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/members#impeachment) which is used for any subsequently thrown exception.

## Methods

### ToString

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

Returns a string that represents the current [OpcRequestJudgementEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/).

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

```csharp
public override string ToString()
```

</div>

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

```vbnet
Public Overrides Function ToString() As String
```

</div>

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

A string that represents the current [OpcRequestJudgementEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/) including either the [ImpeachmentInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/members#impeachmentinfo) (if available) or the [Impeachment](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcrequestjudgementeventargs/members#impeachment) of the event data represented.

**Overrides**

[ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)
