# IOpcNodeReferenceAware Members

> Reference: Defines the lowest common interface of types which offer OpcNodeReference instances using different circumstances and conditions to define or provide OpcNodeReference class instances.

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

## Methods

### GetReferences

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

| Overload | Description |
|---|---|
| [GetReferences()](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodereferenceaware/members#getreferences-noparams) | Retrieves a static / preset sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances (if available). |
| [GetReferences(IOpcNode)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodereferenceaware/members#getreferences-opc-uafx-iopcnode) | Retrieves a sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances initialized with the `node` specified (if possible). |
| [GetReferences(OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodereferenceaware/members#getreferences-opc-uafx-opcnodeid) | Retrieves a sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances initialized with the `nodeId` specified (if possible). |

#### GetReferences()

Retrieves a static / preset sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances (if available).

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

```csharp
IEnumerable<OpcNodeReference> GetReferences()
```

</div>

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

```vbnet
Function GetReferences() As IEnumerable(Of OpcNodeReference)
```

</div>

**Returns**

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

An [IEnumerable&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances which are predefined regarding their source node information or an empty sequence.

#### GetReferences(IOpcNode)

Retrieves a sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances initialized with the `node` specified (if possible).

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

```csharp
IEnumerable<OpcNodeReference> GetReferences(IOpcNode node)
```

</div>

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

```vbnet
Function GetReferences(node As IOpcNode) As IEnumerable(Of OpcNodeReference)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `node` | [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) | The [IOpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnode/) instance from which the [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances will originate from or in which they will cease. |

**Returns**

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

An [IEnumerable&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances initialized using the `node` passed or an empty sequence.

**Exceptions**

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

#### GetReferences(OpcNodeId)

Retrieves a sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances initialized with the `nodeId` specified (if possible).

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

```csharp
IEnumerable<OpcNodeReference> GetReferences(OpcNodeId nodeId)
```

</div>

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

```vbnet
Function GetReferences(nodeId As OpcNodeId) As IEnumerable(Of OpcNodeReference)
```

</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/) which identifies the node from which the [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances will originate from or in which they will cease. |

**Returns**

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

An [IEnumerable&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances initialized using the `nodeId` passed or an empty sequence.

**Exceptions**

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