# OpcNotificationReceivedEventArgs Members

> Reference: Provides the event data for the NotificationReceived and NotificationReceived events.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcNotificationReceivedEventArgs</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

### OpcNotificationReceivedEventArgs

Initializes a new instance of the [OpcNotificationReceivedEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnotificationreceivedeventargs/) class using the `subscription` and `notification` specified.

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

```csharp
public OpcNotificationReceivedEventArgs(
    OpcSubscription subscription,
    OpcNotification notification)
```

</div>

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

```vbnet
Public Sub New(subscription As OpcSubscription, notification As OpcNotification)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `subscription` | [OpcSubscription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcsubscription/) | The [OpcSubscription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcsubscription/) to which the `notification` belongs. |
| `notification` | [OpcNotification](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnotification/) | The [OpcNotification](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnotification/) received. |

**Exceptions**

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

## Properties

### Notification

Gets the notification received.

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

```csharp
public OpcNotification Notification { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Notification As OpcNotification
```

</div>

**Property value**

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

The [OpcNotification](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnotification/) received.

### Subscription

Gets the subscription to which the notification belongs.

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

```csharp
public OpcSubscription Subscription { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Subscription As OpcSubscription
```

</div>

**Property value**

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

The [OpcSubscription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcsubscription/) to which the [Notification](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnotificationreceivedeventargs/members#notification) belongs.
