# OpcServerApplication Class

> Reference: Represents an application which hosts an OpcServer and starts it when the application is run.

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

Represents an application which hosts an [OpcServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserver/) and starts it when the application is run.

## Syntax

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

```csharp
public class OpcServerApplication : OpcServerApplication<OpcServer>
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Class OpcServerApplication
    Inherits OpcServerApplication(Of OpcServer)
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcapplication/) → [OpcServerApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverapplication-1/)&lt;[OpcServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserver/)&gt; → **OpcServerApplication**

## Implements

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

## Constructors

| Name | Description |
|---|---|
| [OpcServerApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverapplication/members#opcserverapplication)<span class="api-meta">5 overloads</span> | Initializes a new instance of the OpcServerApplication class using the `server` specified. |

Inherits members from [OpcServerApplication&lt;OpcServer&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverapplication-1/members), [OpcApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcapplication/members).

## Applies to

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