# OpcSubscription Class

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

Provides information about a client initiated subscription.

## Syntax

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

```csharp
public class OpcSubscription
```

</div>

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

```vbnet
Public Class OpcSubscription
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcSubscription**

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></li>
</ul>

## Properties

| Name | Description |
|---|---|
| [Diagnostics](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#diagnostics) | Gets an instance of which provides diagnostic information about the operations performed and activities recognized on this OpcSubscription. |
| [Id](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#id) | Gets the unique identifier of the subscription. |
| [MonitoredItemsCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#monitoreditemscount) | Gets the total number of monitored items observed through this OpcSubscription. |
| [Priority](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#priority) | Gets the priority used for publishing data change and event notifications. |
| [PublishingInterval](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#publishinginterval) | Gets a value indicating the interval used to publish recent data change and event notifications in milliseconds. |
| [PublishingIsEnabled](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#publishingisenabled) | Gets a value indicating whether the publishing of data change and event notifications is enabled for this subscription. |
| [Session](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#session) | Gets the session which owns this OpcSubscription. |

## Methods

| Name | Description |
|---|---|
| [Dispose](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#dispose)<span class="api-meta">2 overloads</span> | Releases all resources used by the OpcSubscription. |
| [GetMonitoredItems](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/members#getmonitoreditems)<span class="api-meta">since v2.50</span> | Provides a sequence of [OpcMonitoredItem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcmonitoreditem/) instances associated with this OpcSubscription. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
