# OpcTranslatePathsRequest Members

> Reference: Represents the request of the TranslateBrowsePathsToNodeIds service of OPC UA, which translates browse paths to node identifiers.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcTranslatePathsRequest</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.services">Opc.UaFx.Services</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 [OpcServiceRequest&lt;OpcTranslatePath, OpcTranslatePathCollection&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicerequest-2/members), [OpcServiceRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicerequest/members).

## Constructors

### OpcTranslatePathsRequest

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

| Overload | Description |
|---|---|
| [OpcTranslatePathsRequest(IEnumerable&lt;OpcTranslatePath&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/members#opctranslatepathsrequest-system-collections-generic-ienumerable-of-opc-uafx-opctranslatepath) | Initializes a new instance of the [OpcTranslatePathsRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/) class using the specified `commands` and a new header. |
| [OpcTranslatePathsRequest(params OpcTranslatePath\[\])](#opctranslatepathsrequest-opc-uafx-opctranslatepath-array) | Initializes a new instance of the [OpcTranslatePathsRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/) class using the specified `commands` and a new header. |
| [OpcTranslatePathsRequest(IOpcServiceRequestHeader, IEnumerable&lt;OpcTranslatePath&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/members#opctranslatepathsrequest-opc-uafx-services-iopcservicerequestheader-system-collections-generic-ienumerable-of-opc-uafx-opctranslatepath) | Initializes a new instance of the [OpcTranslatePathsRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/) class using the specified `header` and `commands`. |
| [OpcTranslatePathsRequest(IOpcServiceRequestHeader, params OpcTranslatePath\[\])](#opctranslatepathsrequest-opc-uafx-services-iopcservicerequestheader-opc-uafx-opctranslatepath-array) | Initializes a new instance of the [OpcTranslatePathsRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/) class using the specified `header` and `commands`. |

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

Initializes a new instance of the [OpcTranslatePathsRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/) class using the specified `commands` and a new header.

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

```csharp
public OpcTranslatePathsRequest(IEnumerable<OpcTranslatePath> commands)
```

</div>

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

```vbnet
Public Sub New(commands As IEnumerable(Of OpcTranslatePath))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `commands` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/)&gt; | The commands which specify the browse paths to translate. |

**Exceptions**

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

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

Initializes a new instance of the [OpcTranslatePathsRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/) class using the specified `commands` and a new header.

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

```csharp
public OpcTranslatePathsRequest(params OpcTranslatePath[] commands)
```

</div>

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

```vbnet
Public Sub New(ParamArray commands As OpcTranslatePath())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `commands` | params [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/)[] | The commands which specify the browse paths to translate. |

**Exceptions**

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

#### OpcTranslatePathsRequest(IOpcServiceRequestHeader, IEnumerable&lt;OpcTranslatePath&gt;)

Initializes a new instance of the [OpcTranslatePathsRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/) class using the specified `header` and `commands`.

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

```csharp
public OpcTranslatePathsRequest(
    IOpcServiceRequestHeader header,
    IEnumerable<OpcTranslatePath> commands)
```

</div>

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

```vbnet
Public Sub New(
    header As IOpcServiceRequestHeader,
    commands As IEnumerable(Of OpcTranslatePath))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `header` | [IOpcServiceRequestHeader](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcservicerequestheader/) | The header of the request. |
| `commands` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/)&gt; | The commands which specify the browse paths to translate. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `header` or the `commands` is a null reference (Nothing in Visual Basic). |

#### OpcTranslatePathsRequest(IOpcServiceRequestHeader, params OpcTranslatePath\[\])

Initializes a new instance of the [OpcTranslatePathsRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opctranslatepathsrequest/) class using the specified `header` and `commands`.

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

```csharp
public OpcTranslatePathsRequest(
    IOpcServiceRequestHeader header,
    params OpcTranslatePath[] commands)
```

</div>

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

```vbnet
Public Sub New(
    header As IOpcServiceRequestHeader,
    ParamArray commands As OpcTranslatePath())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `header` | [IOpcServiceRequestHeader](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcservicerequestheader/) | The header of the request. |
| `commands` | params [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/)[] | The commands which specify the browse paths to translate. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `header` or the `commands` is a null reference (Nothing in Visual Basic). |
