# OpcClassicDiscoveryClient Class

<span class="api-meta">since v2.8</span>

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client.classic">Opc.UaFx.Client.Classic</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">OpcClassicDiscoveryClient Members</a></dd>
</dl>

Represents a client which discovers the OPC Classic servers registered on a host.

## Syntax

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

```csharp
public class OpcClassicDiscoveryClient
```

</div>

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

```vbnet
Public Class OpcClassicDiscoveryClient
```

</div>

## Inheritance

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

## Implements

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

## Remarks

The constructors connect to the host immediately. Call [Close](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#close) or [Dispose](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#dispose-noparams) to release the connection.

## Constructors

| Name | Description |
|---|---|
| [OpcClassicDiscoveryClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#opcclassicdiscoveryclient)<span class="api-meta">3 overloads</span> | Initializes a new instance of the OpcClassicDiscoveryClient class which discovers the servers on the local host. |

## Properties

| Name | Description |
|---|---|
| [Host](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#host) | Gets the name or address of the host whose servers are discovered. |
| [HostIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#hostidentity)<span class="api-meta">since v2.12</span> | Gets the identity used to connect to the host. |

## Methods

| Name | Description |
|---|---|
| [Close](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#close) | Closes the connection to the host. |
| [DiscoverEndpoints](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#discoverendpoints) | Discovers the endpoints of the servers on the host for all OPC Classic interfaces known. |
| [DiscoverServers](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#discoverservers)<span class="api-meta">3 overloads</span> | Discovers the servers on the host which implement the OPC Classic specification AE 1.0, DA 1.0, DA 2.0, DA 3.0 or HDA 1.0. |
| [Dispose](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.classic.opcclassicdiscoveryclient/members#dispose)<span class="api-meta">2 overloads</span> | Releases all resources used by the OpcClassicDiscoveryClient. |

## Applies to

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