# OpcRelativePathElement Class

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

Defines a reference and browse name to follow.

## Syntax

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

```csharp
public class OpcRelativePathElement
```

</div>

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

```vbnet
Public Class OpcRelativePathElement
```

</div>

## Inheritance

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

## Constructors

| Name | Description |
|---|---|
| [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#opcrelativepathelement)<span class="api-meta">2 overloads</span> | Initializes a new instance of the OpcRelativePathElement class following [HierarchicalReferences](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hierarchicalreferences) using the `name` specified. |

## Properties

| Name | Description |
|---|---|
| [Direction](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#direction)<span class="api-meta">since v2.18</span> | Gets a value indicating in which direction the references shall be followed. |
| [IncludeSubtypes](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#includesubtypes)<span class="api-meta">since v2.18</span> | Gets a value indicating whether subtypes of the type of reference identified by either [ReferenceTypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#referencetypeid) or [ReferenceTypeName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#referencetypename) shall be followed as well. |
| [Name](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#name) | Gets the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) of the target node to follow. |
| [ReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#referencetype) | Gets the according [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) value for the [ReferenceTypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#referencetypeid) to follow. |
| [ReferenceTypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#referencetypeid) | Gets the identifier of the rference to follow. |
| [ReferenceTypeName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#referencetypename)<span class="api-meta">since v2.18</span> | Gets the [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) used to follow a specific type of reference using its [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) to determine the according [ReferenceTypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#referencetypeid) while following the current element. |

## Methods

| Name | Description |
|---|---|
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/members#tostring)<span class="api-meta">override</span> | Returns a string representing the relative path element. |

## Applies to

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