# OpcTranslatePath Members

> Reference: Defines a single command of the IOpcTranslatePathsService.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcTranslatePath</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>

Inherits members from [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members), [OpcNodeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeservicecommand/members), [OpcServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicecommand/members).

## Constructors

### OpcTranslatePath

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

| Overload | Description |
|---|---|
| [OpcTranslatePath(params OpcName\[\])](#opctranslatepath-opc-uafx-opcname-array) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `pathElements` to start translating them from the root node. |
| [OpcTranslatePath(IEnumerable&lt;OpcName&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/members#opctranslatepath-system-collections-generic-ienumerable-of-opc-uafx-opcname) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `pathElements` to start translating them from the root node. |
| [OpcTranslatePath(OpcNodeId, params OpcName\[\])](#opctranslatepath-opc-uafx-opcnodeid-opc-uafx-opcname-array) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `pathElements`. |
| [OpcTranslatePath(OpcNodeId, IEnumerable&lt;OpcName&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/members#opctranslatepath-opc-uafx-opcnodeid-system-collections-generic-ienumerable-of-opc-uafx-opcname) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `pathElements`. |
| [OpcTranslatePath(params OpcRelativePathElement\[\])](#opctranslatepath-opc-uafx-opcrelativepathelement-array) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `pathElements` to start translating them from the root node. |
| [OpcTranslatePath(IEnumerable&lt;OpcRelativePathElement&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/members#opctranslatepath-system-collections-generic-ienumerable-of-opc-uafx-opcrelativepathelement) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `pathElements` to start translating them from the root node. |
| [OpcTranslatePath(OpcNodeId, params OpcRelativePathElement\[\])](#opctranslatepath-opc-uafx-opcnodeid-opc-uafx-opcrelativepathelement-array) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `pathElements`. |
| [OpcTranslatePath(OpcNodeId, IEnumerable&lt;OpcRelativePathElement&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/members#opctranslatepath-opc-uafx-opcnodeid-system-collections-generic-ienumerable-of-opc-uafx-opcrelativepathelement) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `pathElements`. |
| [OpcTranslatePath(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/members#opctranslatepath-system-string) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `path` to start translating it from the root node. |
| [OpcTranslatePath(OpcNodeId, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/members#opctranslatepath-opc-uafx-opcnodeid-system-string) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `path`. |
| [OpcTranslatePath(OpcNodeId, OpcRelativePath)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/members#opctranslatepath-opc-uafx-opcnodeid-opc-uafx-opcrelativepath) | Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `path`. |

#### OpcTranslatePath(params OpcName\[\])

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `pathElements` to start translating them from the root node.

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

```csharp
public OpcTranslatePath(params OpcName[] pathElements)
```

</div>

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

```vbnet
Public Sub New(ParamArray pathElements As OpcName())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | params [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)[] | An array of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) objects representing the value of the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) attribute of the nodes to visit to translate the last [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(IEnumerable&lt;OpcName&gt;)

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `pathElements` to start translating them from the root node.

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

```csharp
public OpcTranslatePath(IEnumerable<OpcName> pathElements)
```

</div>

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

```vbnet
Public Sub New(pathElements As IEnumerable(Of OpcName))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)&gt; | A sequence of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) objects representing the value of the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) attribute of the nodes to visit to translate the last [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(OpcNodeId, params OpcName\[\])

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `pathElements`.

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

```csharp
public OpcTranslatePath(OpcNodeId nodeId, params OpcName[] pathElements)
```

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, ParamArray pathElements As OpcName())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `pathElements`. |
| `pathElements` | params [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)[] | An array of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) objects representing the value of the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) attribute of the nodes to visit to translate the last [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The command does not support empty node identifiers. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` or `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(OpcNodeId, IEnumerable&lt;OpcName&gt;)

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `pathElements`.

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

```csharp
public OpcTranslatePath(OpcNodeId nodeId, IEnumerable<OpcName> pathElements)
```

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, pathElements As IEnumerable(Of OpcName))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `pathElements`. |
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)&gt; | A sequence of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) objects representing the value of the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) attribute of the nodes to visit to translate the last [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The command does not support empty node identifiers. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` or `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(params OpcRelativePathElement\[\])

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `pathElements` to start translating them from the root node.

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

```csharp
public OpcTranslatePath(params OpcRelativePathElement[] pathElements)
```

</div>

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

```vbnet
Public Sub New(ParamArray pathElements As OpcRelativePathElement())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | params [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)[] | An array of [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) objects representing the translation directives of the nodes to visit to translate the last [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(IEnumerable&lt;OpcRelativePathElement&gt;)

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `pathElements` to start translating them from the root node.

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

```csharp
public OpcTranslatePath(IEnumerable<OpcRelativePathElement> pathElements)
```

</div>

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

```vbnet
Public Sub New(pathElements As IEnumerable(Of OpcRelativePathElement))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)&gt; | A sequence of [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) objects representing the translation directives of the nodes to visit to translate the last [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(OpcNodeId, params OpcRelativePathElement\[\])

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `pathElements`.

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

```csharp
public OpcTranslatePath(
    OpcNodeId nodeId,
    params OpcRelativePathElement[] pathElements)
```

</div>

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

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    ParamArray pathElements As OpcRelativePathElement())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `pathElements`. |
| `pathElements` | params [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)[] | An array of [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) objects representing the translation directives of the nodes to visit to translate the last [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The command does not support empty node identifiers. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(OpcNodeId, IEnumerable&lt;OpcRelativePathElement&gt;)

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `pathElements`.

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

```csharp
public OpcTranslatePath(
    OpcNodeId nodeId,
    IEnumerable<OpcRelativePathElement> pathElements)
```

</div>

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

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    pathElements As IEnumerable(Of OpcRelativePathElement))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `pathElements`. |
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)&gt; | A sequence of [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) objects representing the translation directives of the nodes to visit to translate the last [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The command does not support empty node identifiers. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` or `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(string)

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `path` to start translating it from the root node.

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

```csharp
public OpcTranslatePath(string path)
```

</div>

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

```vbnet
Public Sub New(path As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `path` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A [string](https://learn.microsoft.com/dotnet/api/system.string) representing a [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The command does not support empty node identifiers. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `path` is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(OpcNodeId, string)

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `path`.

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

```csharp
public OpcTranslatePath(OpcNodeId nodeId, string path)
```

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, path As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `path`. |
| `path` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A [string](https://learn.microsoft.com/dotnet/api/system.string) representing a [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The command does not support empty node identifiers. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` or `path` is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePath(OpcNodeId, OpcRelativePath)

Initializes a new instance of the [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) class using the specified `nodeId` to start translating the `path`.

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

```csharp
public OpcTranslatePath(OpcNodeId nodeId, OpcRelativePath path)
```

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, path As OpcRelativePath)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `path`. |
| `path` | [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) | The [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The command does not support empty node identifiers. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` or `path` is a null reference (Nothing in Visual Basic). |

## Properties

### Path

Gets the path to follow.

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

```csharp
public OpcRelativePath Path { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Path As OpcRelativePath
```

</div>

**Property value**

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

An instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class its elements are followed to determine the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service.
