# OpcNotificationDataSetItem Members

> Reference: Defines the base class of the items of a data set of a notification (see Items).

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

## Constructors

### OpcNotificationDataSetItem

<span class="api-meta">protected · 2 overloads</span>

| Overload | Description |
|---|---|
| [OpcNotificationDataSetItem(IEncodeable)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnotificationdatasetitem/members#opcnotificationdatasetitem-opc-ua-iencodeable)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNotificationDataSetItem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnotificationdatasetitem/) class using the specified `content`. |
| [OpcNotificationDataSetItem(IEncodeable, OpcNotification)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnotificationdatasetitem/members#opcnotificationdatasetitem-opc-ua-iencodeable-opc-uafx-opcnotification)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNotificationDataSetItem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnotificationdatasetitem/) class using the specified `content` of the `notification` specified. |

#### OpcNotificationDataSetItem(IEncodeable)

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

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

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

```csharp
protected OpcNotificationDataSetItem(IEncodeable content)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Protected Sub New(content As IEncodeable)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `content` | <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.IEncodeable">IEncodeable</abbr> | The notification data of the item to represent. |

**Exceptions**

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

#### OpcNotificationDataSetItem(IEncodeable, OpcNotification)

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

Initializes a new instance of the [OpcNotificationDataSetItem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnotificationdatasetitem/) class using the specified `content` of the `notification` specified.

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

```csharp
protected OpcNotificationDataSetItem(
    IEncodeable content,
    OpcNotification notification)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Protected Sub New(content As IEncodeable, notification As OpcNotification)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `content` | <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.IEncodeable">IEncodeable</abbr> | The notification data of the item to represent. |
| `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/) which contains the item. |

**Exceptions**

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

## Properties

### Notification

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

Gets or sets the notification which contains the item.

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

```csharp
public virtual OpcNotification Notification { get; protected set; }
```

</div>

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

```vbnet
Public Overridable 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/) which contains the item.
