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

Represents a discovery server with which servers register and which provides the registered servers to clients.

## Syntax

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

```csharp
public class OpcDiscoveryServer : OpcServerBase
```

</div>

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

```vbnet
Public Class OpcDiscoveryServer
    Inherits OpcServerBase
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcApplicationInstance](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcapplicationinstance-2/)&lt;[OpcTransport](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctransport/), [OpcServerSecurity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserversecurity/)&gt; → [OpcServerBase](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverbase/) → **OpcDiscoveryServer**

## Implements

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

## Constructors

| Name | Description |
|---|---|
| [OpcDiscoveryServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcdiscoveryserver/members#opcdiscoveryserver)<span class="api-meta">3 overloads</span> | Initializes a new instance of the OpcDiscoveryServer class using the address "opc.tcp://localhost:4840". |

## Properties

| Name | Description |
|---|---|
| [SystemContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcdiscoveryserver/members#systemcontext)<span class="api-meta">override · since v2.11</span> | Gets the [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) which is used to store the context sensitive data and configuration used by the current OpcDiscoveryServer instance. |

## Methods

| Name | Description |
|---|---|
| [CreateConfiguration](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcdiscoveryserver/members#createconfiguration)<span class="api-meta">protected · override</span> | Creates the configuration which is used to start the discovery server. |
| [StartCore](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcdiscoveryserver/members#startcore)<span class="api-meta">protected · override</span> | Starts the discovery server using the `configuration` specified. |
| [StopCore](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcdiscoveryserver/members#stopcore)<span class="api-meta">protected · override</span> | Stops the discovery server. |

Inherits members from [OpcServerBase](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverbase/members), [OpcApplicationInstance&lt;OpcTransport, OpcServerSecurity&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcapplicationinstance-2/members).

## Applies to

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