# OpcRelativePath Members

> Reference: Defines a sequence of references and browse names to follow.

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

## Constructors

### OpcRelativePath

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

| Overload | Description |
|---|---|
| [OpcRelativePath(IEnumerable&lt;string&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#opcrelativepath-system-collections-generic-ienumerable-of-system-string) | Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified to define a path following hierarchical references using the `pathElements` as the browse names of the nodes their path is to be expressed. |
| [OpcRelativePath(params string\[\])](#opcrelativepath-system-string-array) | Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified to define a path following hierarchical references using the `pathElements` as the browse names of the nodes their path is to be expressed. |
| [OpcRelativePath(IEnumerable&lt;OpcName&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#opcrelativepath-system-collections-generic-ienumerable-of-opc-uafx-opcname) | Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified to define a path following hierarchical references using the `pathElements` as the browse names of the nodes their path is to be expressed. |
| [OpcRelativePath(params OpcName\[\])](#opcrelativepath-opc-uafx-opcname-array) | Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified to define a path following hierarchical references using the `pathElements` as the browse names of the nodes their path is to be expressed. |
| [OpcRelativePath(IEnumerable&lt;OpcRelativePathElement&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#opcrelativepath-system-collections-generic-ienumerable-of-opc-uafx-opcrelativepathelement) | Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified. |
| [OpcRelativePath(params OpcRelativePathElement\[\])](#opcrelativepath-opc-uafx-opcrelativepathelement-array) | Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified. |

**Exceptions (all overloads)**

| 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). |

#### OpcRelativePath(IEnumerable&lt;string&gt;)

Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified to define a path following hierarchical references using the `pathElements` as the browse names of the nodes their path is to be expressed.

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

```csharp
public OpcRelativePath(IEnumerable<string> pathElements)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[String](https://learn.microsoft.com/dotnet/api/system.string)&gt; | A sequence of [string](https://learn.microsoft.com/dotnet/api/system.string) 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 hierarchical nodes their path is to be expressed by the new [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | One of the items in `pathElements` is equals to [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty). |

#### OpcRelativePath(params string\[\])

Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified to define a path following hierarchical references using the `pathElements` as the browse names of the nodes their path is to be expressed.

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

```csharp
public OpcRelativePath(params string[] pathElements)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | params [String](https://learn.microsoft.com/dotnet/api/system.string)[] | An array of [string](https://learn.microsoft.com/dotnet/api/system.string) 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 hierarchical nodes their path is to be expressed by the new [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | One of the items in `pathElements` is equals to [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty). |

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

Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified to define a path following hierarchical references using the `pathElements` as the browse names of the nodes their path is to be expressed.

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

```csharp
public OpcRelativePath(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 hierarchical nodes their path is to be expressed by the new [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | One of the items in `pathElements` does not indicate a name (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#isnull)). |

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

Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified to define a path following hierarchical references using the `pathElements` as the browse names of the nodes their path is to be expressed.

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

```csharp
public OpcRelativePath(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 hierarchical nodes their path is to be expressed by the new [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | One of the items in `pathElements` does not indicate a name (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#isnull)). |

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

Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified.

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

```csharp
public OpcRelativePath(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 [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) and reference of the nodes their path is to be expressed by the new [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/). |

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

Initializes a new instance of the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) class with the `pathElements` specified.

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

```csharp
public OpcRelativePath(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 [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) and reference of the nodes their path is to be expressed by the new [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/). |

## Properties

### Length

Gets the total number of elements in the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/).

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

```csharp
public int Length { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Length As Integer
```

</div>

**Property value**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

The total number of elements in the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/); zero if there are no elements in the path.

## Methods

### Combine

<span class="api-meta">static</span>

Combines the `paths` into a single [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/).

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

```csharp
public static OpcRelativePath Combine(params OpcRelativePath[] paths)
```

</div>

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

```vbnet
Public Shared Function Combine(
    ParamArray paths As OpcRelativePath()) As OpcRelativePath
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `paths` | params [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/)[] | An array of parts of the path to construct. |

**Returns**

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

The combined `paths`.

**Exceptions**

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

### GetEnumerator

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

Returns an enumerator that iterates through the path.

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

```csharp
public IEnumerator<OpcRelativePathElement> GetEnumerator()
```

</div>

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

```vbnet
Public Function GetEnumerator() As IEnumerator(Of OpcRelativePathElement)
```

</div>

**Returns**

[IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1)&lt;[OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)&gt;

An enumerator that can be used to iterate through the path.

**Implements**

[GetEnumerator()](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1.getenumerator)

### Parse

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

| Overload | Description |
|---|---|
| [Parse(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#parse-system-string)<span class="api-meta">static</span> | Converts a path string to a [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) instance. |
| [Parse(OpcContext, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#parse-opc-uafx-opccontext-system-string)<span class="api-meta">static · since v2.18</span> | Converts a path string to a [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) instance using a specific [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/). |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `value` is an empty string. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `value` is a null reference (Nothing in Visual Basic). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `value` is not a valid path. |

#### Parse(string)

<span class="api-meta">static</span>

Converts a path string to a [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) instance.

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

```csharp
public static OpcRelativePath Parse(string value)
```

</div>

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

```vbnet
Public Shared Function Parse(value As String) As OpcRelativePath
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A string that contains a path. |

**Returns**

[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.

#### Parse(OpcContext, string)

<span class="api-meta">static · since v2.18</span>

Converts a path string to a [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) instance using a specific [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/).

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

```csharp
public static OpcRelativePath Parse(OpcContext context, string value)
```

</div>

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

```vbnet
Public Shared Function Parse(
    context As OpcContext,
    value As String) As OpcRelativePath
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `context` | [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) | The [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) to use to parse the reference types used in the `value`. |
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A string that contains a path. |

**Returns**

[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.

### ToString

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

| Overload | Description |
|---|---|
| [ToString()](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#tostring-noparams)<span class="api-meta">override</span> | Returns a string representing the relative path. |
| [ToString(OpcContext)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#tostring-opc-uafx-opccontext)<span class="api-meta">since v2.18</span> | Returns a string representing the relative path using the `context` specified. |

#### ToString()

<span class="api-meta">override</span>

Returns a string representing the relative path.

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

```csharp
public override string ToString()
```

</div>

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

```vbnet
Public Overrides Function ToString() As String
```

</div>

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

A string formatted using the elements of the current [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/).

**Overrides**

[ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

#### ToString(OpcContext)

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

Returns a string representing the relative path using the `context` specified.

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

```csharp
public string ToString(OpcContext context)
```

</div>

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

```vbnet
Public Function ToString(context As OpcContext) As String
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `context` | [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) | The [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) to use to resolve the names of reference types used among the elements in the path. |

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

A string formatted using the elements of the current [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/).

**Exceptions**

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

### TryParse

<span class="api-meta">static · 2 overloads · since v2.18</span>

| Overload | Description |
|---|---|
| [TryParse(string, out OpcRelativePath)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#tryparse-system-string-opc-uafx-opcrelativepath-ref)<span class="api-meta">static · since v2.18</span> | Determines whether a string is a valid path. |
| [TryParse(OpcContext, string, out OpcRelativePath)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/members#tryparse-opc-uafx-opccontext-system-string-opc-uafx-opcrelativepath-ref)<span class="api-meta">static · since v2.18</span> | Determines whether a string is a valid path using a specific [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/). |

#### TryParse(string, out OpcRelativePath)

<span class="api-meta">static · since v2.18</span>

Determines whether a string is a valid path.

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

```csharp
public static bool TryParse(string value, out OpcRelativePath path)
```

</div>

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

```vbnet
Public Shared Function TryParse(
    value As String,
    path As OpcRelativePath) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The string to validate. |
| `path` | out [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/) version of the string. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true, if `value` is a valid path; otherwise the value false.

#### TryParse(OpcContext, string, out OpcRelativePath)

<span class="api-meta">static · since v2.18</span>

Determines whether a string is a valid path using a specific [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/).

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

```csharp
public static bool TryParse(
    OpcContext context,
    string value,
    out OpcRelativePath path)
```

</div>

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

```vbnet
Public Shared Function TryParse(
    context As OpcContext,
    value As String,
    path As OpcRelativePath) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `context` | [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) | The [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) to use to parse the reference types used in the `value`. |
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The string to validate. |
| `path` | out [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/) version of the string. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true, if `value` is a valid path; otherwise the value false.

## Indexers

### Item

Gets the [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) at the specified index.

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

```csharp
public OpcRelativePathElement this[int index] { get; }
```

</div>

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

```vbnet
Public ReadOnly Default Property this[](
    index As Integer) As OpcRelativePathElement
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `index` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The zero-based index of the element to get. |

**Property value**

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

The [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) at the specified index.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception) | The `index` is not a valid index in the [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/). |
