# OpcClient.DefaultSubscription Property

> Reference: Gets or sets the subscription which is assigned as the default subscription of the sessions used by the OpcClient.

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

Gets or sets the subscription which is assigned as the default subscription of the sessions used by the [OpcClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/).

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

```csharp
public OpcSubscription DefaultSubscription { get; set; }
```

</div>

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

```vbnet
Public Property DefaultSubscription As OpcSubscription
```

</div>

**Property value**

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

An instance of the [OpcSubscription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcsubscription/) class or a null reference (Nothing in Visual Basic) if no subscription has been set and the client has not yet been connected.

**Remarks**

The [OpcClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/) neither creates this subscription on the server nor adds it to the [Subscriptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/subscriptions). If no subscription has been set, the client provides the default subscription of the first session it uses, which is not created on the server either. To create a subscription on the server use [CreateSubscription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createsubscription).
