# OpcFileMethods Class

<span class="api-meta">static</span>

<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">OpcFileMethods Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides static (Shared in Visual Basic) methods to directly interact with the method nodes of a file node.

## Syntax

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

```csharp
public static class OpcFileMethods
```

</div>

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

```vbnet
Public Module OpcFileMethods
```

</div>

## Inheritance

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

## Methods

| Name | Description |
|---|---|
| [Close](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#close)<span class="api-meta">static · 4 overloads</span> | Closes the file maintained by the file node referenced by the `context` specified. |
| [GetPosition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#getposition)<span class="api-meta">static · 4 overloads</span> | Retrieves the position within the file maintained by the file node referenced by the `context` specified. |
| [IsFileNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#isfilenode)<span class="api-meta">static · 2 overloads</span> | Inspects the file node referenced by the `context` specified whether the node fulfills the requirements of accessing it in the manner of a OPC UA FileType. |
| [Open](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#open)<span class="api-meta">static · 4 overloads</span> | Opens the file maintained by the file node referenced by the `context` specified. |
| [Read](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#read)<span class="api-meta">static · 4 overloads</span> | Reads the number of bytes specified by `length` from the file maintained by the file node referenced by the `context` specified. |
| [SecureClose](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#secureclose)<span class="api-meta">static · 6 overloads</span> | Closes the file `fileHandle` specified. |
| [SecureGetPosition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#securegetposition)<span class="api-meta">static · 6 overloads</span> | Retrieves the position within the file identified by the `fileHandle` specified. |
| [SecureOpen](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#secureopen)<span class="api-meta">static · 4 overloads</span> | Opens the file maintained by the file node referenced by the `context` specified. |
| [SecureRead](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#secureread)<span class="api-meta">static · 6 overloads</span> | Reads the number of bytes specified by `length` from the file identified by the `fileHandle` specified. |
| [SecureSetPosition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#securesetposition)<span class="api-meta">static · 6 overloads</span> | Updates the position in the file identified by the `fileHandle` specified using `position`. |
| [SecureWrite](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#securewrite)<span class="api-meta">static · 6 overloads</span> | Writes the `data` to the file identified by the `fileHandle` specified. |
| [SetPosition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#setposition)<span class="api-meta">static · 4 overloads</span> | Updates the position in the file maintained by the file node referenced by the `context` specified using `position`. |
| [Write](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcfilemethods/members#write)<span class="api-meta">static · 4 overloads</span> | Writes the `data` to the file maintained by the file node referenced by the `context` specified. |

## Applies to

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