# OpcNodeSet Class

<span class="api-meta">since v2.8</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">OpcNodeSet Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides a static in-memory representation of an address space including its nodes their references to each other and the used types.

## Syntax

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

```csharp
public class OpcNodeSet
```

</div>

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

```vbnet
Public Class OpcNodeSet
```

</div>

## Inheritance

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

## Properties

| Name | Description |
|---|---|
| [Context](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#context)<span class="api-meta">since v2.50</span> | Gets the [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) used for this OpcNodeSet. |
| [LastModified](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#lastmodified)<span class="api-meta">since v2.9</span> | Gets the last time the node set document was modified. |
| [Models](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#models)<span class="api-meta">since v2.9</span> | Gets a read-only collection of the models declared by the node set. |
| [Name](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#name)<span class="api-meta">since v2.9</span> | Gets the name of the node set. |
| [Namespaces](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#namespaces)<span class="api-meta">since v2.9</span> | Gets a read-only collection of [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/)s referred to. |

## Methods

| Name | Description |
|---|---|
| [GetDataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#getdatatype)<span class="api-meta">6 overloads · since v2.9</span> | Retrieves the [OpcDataTypeInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypeinfo/) object which is known under the `name` specified. |
| [GetDataTypes](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#getdatatypes)<span class="api-meta">since v2.9</span> | Retrieves all [OpcDataTypeInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypeinfo/) objects offered by the [IOpcTypeProvider](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopctypeprovider/). |
| [GetDataTypeSystem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#getdatatypesystem)<span class="api-meta">2 overloads</span> | Retrieves the system used to describe the data types defined in the OpcNodeSet using [Binary](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingtype/#binary) as the type of encoding. |
| [GetNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#getnode)<span class="api-meta">since v2.50</span> | Retrieves the [IOpcNodeInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodeinfo/) which is defined within this OpcNodeSet and is known under the `nodeId` specified. |
| [GetNodes](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#getnodes)<span class="api-meta">since v2.54</span> | Retrieves a sequence of [IOpcNodeInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodeinfo/) of all nodes defined within this OpcNodeSet. |
| [GetNodeType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#getnodetype)<span class="api-meta">4 overloads · since v2.9</span> | Retrieves the [OpcNodeTypeInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeinfo/) object which is known under the `name` specified. |
| [GetNodeTypes](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#getnodetypes)<span class="api-meta">since v2.9</span> | Retrieves all [OpcNodeTypeInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeinfo/) objects offered by the [IOpcTypeProvider](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopctypeprovider/). |
| [GetNodeTypeSystem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#getnodetypesystem)<span class="api-meta">since v2.9</span> | Retrieves the system used to describe the node types defined in the OpcNodeSet. |
| [Load](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#load)<span class="api-meta">static · 6 overloads</span> | Creates a new OpcNodeSet instance from the file specified by `filePath`. |
| [Parse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#parse)<span class="api-meta">static · 2 overloads</span> | Creates a new OpcNodeSet instance from the [string](https://learn.microsoft.com/dotnet/api/system.string) specified by `data`. |
| [Save](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#save)<span class="api-meta">2 overloads · since v2.11</span> | Writes this OpcNodeSet as a node set XML document to the file specified by the `filePath`. |
| [TryParse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeset/members#tryparse)<span class="api-meta">static · 2 overloads</span> | Determines whether a [string](https://learn.microsoft.com/dotnet/api/system.string) is a valid OpcNodeSet. |

## Applies to

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