# OpcNodeReferenceSet Members

> Reference: Provides a sequence of OpcNodeReference instances.

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

### OpcNodeReferenceSet

Initializes a new instance of the [OpcNodeReferenceSet](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferenceset/) class using the `references` specified.

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

```csharp
public OpcNodeReferenceSet(IEnumerable<OpcNodeReference> references)
```

</div>

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

```vbnet
Public Sub New(references As IEnumerable(Of OpcNodeReference))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `references` | [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; | The sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instance to represent by the new [OpcNodeReferenceSet](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferenceset/). |

**Exceptions**

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

## 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.opcnodereferenceset/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. |
| [GetReferences(IOpcNode)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferenceset/members#getreferences-opc-uafx-iopcnode) | Retrieves an empty sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances. |
| [GetReferences(OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereferenceset/members#getreferences-opc-uafx-opcnodeid) | Retrieves an empty sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances. |

#### GetReferences()

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

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

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

</div>

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

```vbnet
Public 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.

**Implements**

[GetReferences](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodereferenceaware/members#getreferences-noparams)

#### GetReferences(IOpcNode)

Retrieves an empty sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances.

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

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

</div>

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

```vbnet
Public 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 shall originate from or in which they shall 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 empty [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.

**Exceptions**

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

**Implements**

[GetReferences](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodereferenceaware/members#getreferences-opc-uafx-iopcnode)

#### GetReferences(OpcNodeId)

Retrieves an empty sequence of [OpcNodeReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodereference/) instances.

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

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

</div>

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

```vbnet
Public 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 shall originate from or in which they shall 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 empty [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.

**Exceptions**

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

**Implements**

[GetReferences](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodereferenceaware/members#getreferences-opc-uafx-opcnodeid)
