# OpcNodeReferenceSource Class

> Reference: Provides a set of methods to construct OpcNodeReference instances using different source node information.

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

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

Provides a set of methods to construct [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances using different source node information.

## Syntax

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

```csharp
public class OpcNodeReferenceSource
```

</div>

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

```vbnet
Public Class OpcNodeReferenceSource
```

</div>

## Inheritance

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

## Constructors

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

## Properties

| Name | Description |
|---|---|
| [Node](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferencesource/members#node) | Gets the node from which the references constructed originate from. |
| [NodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferencesource/members#nodeid) | Gets the identifier of the node from which the references constructred originate from. |

## Methods

| Name | Description |
|---|---|
| [To](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferencesource/members#to)<span class="api-meta">8 overloads</span> | Provides a node / references bundle in a new instance of the [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) class using the source node information of this OpcNodeReferenceSource and the `references` specified. |
| [ToChild](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferencesource/members#tochild)<span class="api-meta">6 overloads</span> | Provides a node / reference bundle in a new instance of the [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) class using the source node information of this OpcNodeReferenceSource and the `targetNode` as the target of the reference. |
| [ToParent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferencesource/members#toparent)<span class="api-meta">6 overloads</span> | Provides a node / reference bundle in a new instance of the [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) class using the source node information of this OpcNodeReferenceSource and the `targetNode` as the target of the reference. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferencesource/members#tostring)<span class="api-meta">override</span> | Returns a string representing the information contained in the OpcNodeReferenceSource. |

## Applies to

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