# OpcEndpointDescription Members

> Reference: Represents the description of an endpoint of a server, as provided by the server or a discovery server.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcEndpointDescription</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

## Properties

### Policy

Gets the security policy of the endpoint.

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

```csharp
public OpcSecurityPolicy Policy { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Policy As OpcSecurityPolicy
```

</div>

**Property value**

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

An [OpcSecurityPolicy](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsecuritypolicy/) using the security mode and the security policy URI of the endpoint.

### ProxyUrl

Gets the URL of the proxy to use when connecting to the endpoint.

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

```csharp
public Uri ProxyUrl { get; }
```

</div>

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

```vbnet
Public ReadOnly Property ProxyUrl As Uri
```

</div>

**Property value**

[Uri](https://learn.microsoft.com/dotnet/api/system.uri)

The URL of the proxy, or a null reference (Nothing in Visual Basic) if no proxy is to be used.

### Server

Gets the description of the server which provides the endpoint.

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

```csharp
public OpcApplicationDescription Server { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Server As OpcApplicationDescription
```

</div>

**Property value**

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

The [OpcApplicationDescription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcapplicationdescription/) of the server, or a null reference (Nothing in Visual Basic) if the description does not contain it.

### ServerCertificate

Gets the certificate of the server which provides the endpoint.

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

```csharp
public X509Certificate2 ServerCertificate { get; }
```

</div>

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

```vbnet
Public ReadOnly Property ServerCertificate As X509Certificate2
```

</div>

**Property value**

[X509Certificate2](https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509certificate2)

The certificate of the server, or a null reference (Nothing in Visual Basic) if the description does not contain it.

**Remarks**

The certificate is disposed of together with the description.

### SupportedTokenTypes

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

Gets the kinds of the user identity tokens accepted by the endpoint.

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

```csharp
public IEnumerable<OpcAccessControlTokenType> SupportedTokenTypes { get; }
```

</div>

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

```vbnet
Public ReadOnly Property SupportedTokenTypes As IEnumerable(Of OpcAccessControlTokenType)
```

</div>

**Property value**

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcAccessControlTokenType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcaccesscontroltokentype/)&gt;

A sequence of the token types of the user token policies of the endpoint; empty if the description does not contain any.

### TransportProfileUri

Gets the URI of the transport profile of the endpoint.

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

```csharp
public Uri TransportProfileUri { get; }
```

</div>

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

```vbnet
Public ReadOnly Property TransportProfileUri As Uri
```

</div>

**Property value**

[Uri](https://learn.microsoft.com/dotnet/api/system.uri)

The URI of the transport profile, or a null reference (Nothing in Visual Basic) if it is not an absolute URI.

### Url

Gets the URL of the endpoint.

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

```csharp
public Uri Url { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Url As Uri
```

</div>

**Property value**

[Uri](https://learn.microsoft.com/dotnet/api/system.uri)

The URL of the endpoint, or a null reference (Nothing in Visual Basic) if it is not an absolute URI.

## Methods

### Dispose

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [Dispose()](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcendpointdescription/members#dispose-noparams) | Releases all resources used by the [OpcEndpointDescription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcendpointdescription/). |
| [Dispose(bool)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcendpointdescription/members#dispose-system-boolean)<span class="api-meta">protected · virtual</span> | Releases the unmanaged resources used by the [OpcEndpointDescription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcendpointdescription/) and optionally releases the managed resources. |

#### Dispose()

Releases all resources used by the [OpcEndpointDescription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcendpointdescription/).

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

```csharp
public void Dispose()
```

</div>

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

```vbnet
Public Sub Dispose()
```

</div>

**Implements**

[Dispose()](https://learn.microsoft.com/dotnet/api/system.idisposable.dispose)

#### Dispose(bool)

<span class="api-meta">protected · virtual</span>

Releases the unmanaged resources used by the [OpcEndpointDescription](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcendpointdescription/) and optionally releases the managed resources.

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

```csharp
protected virtual void Dispose(bool disposing)
```

</div>

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

```vbnet
Protected Overridable Sub Dispose(disposing As Boolean)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `disposing` | [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) | The value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources. |
