# OpcNodeReference Class

> Reference: Defines a bunch of OpcReference instances associated with a specific node using its IOpcNode instance or a OpcNodeId to identify the belonging node the references are used for.

<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">OpcNodeReference Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines a bunch of [OpcReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreference/) instances associated with a specific node using its [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) instance or a [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) to identify the belonging node the references are used for.

## Syntax

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

```csharp
public class OpcNodeReference
```

</div>

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

```vbnet
Public Class OpcNodeReference
```

</div>

## Inheritance

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

## Implements

<ul class="api-implements">
<li><a href="../opc.uafx.iopcnodereferenceaware/">IOpcNodeReferenceAware</a></li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#opcnodereference)<span class="api-meta">6 overloads</span> | Initializes a new instance of the OpcNodeReference class using the `node` specified. |

## Properties

| Name | Description |
|---|---|
| [Node](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#node)<span class="api-meta">since v2.7</span> | Gets the node to which the [References](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#references) belong to. |
| [NodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#nodeid) | Gets the identifier of the node to which the [References](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#references) belong to. |
| [References](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#references) | Gets a collection of [OpcReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreference/) instances which belong the node identified by the [NodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#nodeid) or refered to in the [Node](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#node) property. |

## Methods

| Name | Description |
|---|---|
| [From](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#from)<span class="api-meta">static · 2 overloads · since v2.7</span> | Provides a new [OpcNodeReferenceSource](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferencesource/) initialized with the `nodeId` specified to construct OpcNodeReference instances using the `nodeId` as the identifier of the source node for the subsequent defined OpcNodeReference instances. |
| [To](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#to)<span class="api-meta">static · 6 overloads · since v2.7</span> | Provides a bidirectional reference using the `targetNode` as the target of the reference. |
| [ToChild](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#tochild)<span class="api-meta">static · 6 overloads · since v2.7</span> | Provides a unidirectional reference using the `targetNode` as the target of the reference. |
| [ToParent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#toparent)<span class="api-meta">static · 6 overloads · since v2.7</span> | Provides a unidirectional reference using the `targetNode` as the target of the reference. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/members#tostring)<span class="api-meta">override · since v2.7</span> | Returns a string representing the information contained in the OpcNodeReference. |

## Applies to

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