# OpcFileNodeContext Class

> Reference: Describes a single file 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>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Describes a single file 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 OpcFileNodeContext : OpcNodeAccessContext
```

</div>

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

```vbnet
Public Class OpcFileNodeContext
    Inherits OpcNodeAccessContext
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcNodeAccessContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodeaccesscontext/) → **OpcFileNodeContext**

## Remarks

The OpcFileNodeContext is used whenever a file 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 file 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 file operation.

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

Inherits members from [OpcNodeAccessContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodeaccesscontext/members).

## Applies to

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