# OpcSubscriptionEventArgs Class

> Reference: Provides the event data for the SubscriptionCreated and SubscriptionDeleted event.

<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">OpcSubscriptionEventArgs Members</a></dd>
</dl>

Provides the event data for the [SubscriptionCreated](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserver/members#subscriptioncreated) and [SubscriptionDeleted](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserver/members#subscriptiondeleted) event.

## Syntax

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

```csharp
public class OpcSubscriptionEventArgs : EventArgs
```

</div>

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

```vbnet
Public Class OpcSubscriptionEventArgs
    Inherits EventArgs
```

</div>

## Inheritance

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

## Constructors

| Name | Description |
|---|---|
| [OpcSubscriptionEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscriptioneventargs/members#opcsubscriptioneventargs) | Initializes a new instance of the OpcSubscriptionEventArgs using the `subscription` specified. |

## Properties

| Name | Description |
|---|---|
| [Subscription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscriptioneventargs/members#subscription) | Gets the [OpcSubscription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcsubscription/) instances affected by the event. |

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

## Applies to

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