# OpcNodeAccessContext Class

> Reference: Describes a single node accessed by an OpcClient.

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</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">OpcNodeAccessContext Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Describes a single node accessed by an [OpcClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/).

## Syntax

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

```csharp
public class OpcNodeAccessContext
```

</div>

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

```vbnet
Public Class OpcNodeAccessContext
```

</div>

## Inheritance

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

## Derived types

- [OpcBrowseNodeContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcbrowsenodecontext/)
- [OpcFileNodeContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilenodecontext/)

## Remarks

The OpcNodeAccessContext is used whenever a node based operation is performed using a specific [OpcClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/). An instance of this class does then provide the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node to operate on and the [OpcClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/) to use for the operation.

Using this class or a scenario specific derivate of this class does simplify the API used for a specific node operation by reducing the amount of arguments (bound by the context object) they have to be passed.

## Properties

| Name | Description |
|---|---|
| [Client](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodeaccesscontext/members#client) | Gets the [OpcClient](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/) used to operate on the node. |
| [NodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodeaccesscontext/members#nodeid) | Gets the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node to operate on. |

## Methods

| Name | Description |
|---|---|
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodeaccesscontext/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the current OpcNodeAccessContext. |
| [Update](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodeaccesscontext/members#update)<span class="api-meta">protected · virtual · since v2.11</span> | Updates the context when the [Client](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodeaccesscontext/members#client) starts to reconnect to the server and when it has been reconnected. |

## Applies to

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