# OpcRequestValidatedEventArgs Members

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

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcRequestValidatedEventArgs</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.server">Opc.UaFx.Server</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

### OpcRequestValidatedEventArgs

Initializes a new instance of the [OpcRequestValidatedEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcrequestvalidatedeventargs/) class using the `context`, `request` and `requestType` specified.

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

```csharp
public OpcRequestValidatedEventArgs(
    OpcContext context,
    IOpcServiceRequest request,
    OpcRequestType requestType)
```

</div>

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

```vbnet
Public Sub New(
    context As OpcContext,
    request As IOpcServiceRequest,
    requestType As OpcRequestType)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `context` | [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) | The [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) of the request. |
| `request` | [IOpcServiceRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcservicerequest/) | The [IOpcServiceRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcservicerequest/) validated. |
| `requestType` | [OpcRequestType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcrequesttype/) | The [OpcRequestType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcrequesttype/) of the `request`. |

**Exceptions**

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

## Properties

### Context

Gets the context of the request.

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

```csharp
public OpcContext Context { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Context As OpcContext
```

</div>

**Property value**

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

The [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) of the request, an [OpcOperationContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/).

### Request

Gets the request validated.

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

```csharp
public IOpcServiceRequest Request { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Request As IOpcServiceRequest
```

</div>

**Property value**

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

The [IOpcServiceRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcservicerequest/) received by the server.

### RequestType

Gets the type of the request.

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

```csharp
public OpcRequestType RequestType { get; }
```

</div>

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

```vbnet
Public ReadOnly Property RequestType As OpcRequestType
```

</div>

**Property value**

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

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