# OpcFileSetPositionMethodNode.FileSetPositionCallback Delegate

<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>
</dl>

SetPosition is used to set the current position of the file handle.

## Syntax

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

```csharp
public delegate void OpcFileSetPositionMethodNode.FileSetPositionCallback(
    uint fileHandle,
    ulong position)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Delegate Sub OpcFileSetPositionMethodNode.FileSetPositionCallback(
    fileHandle As UInteger,
    position As ULong)
```

</div>

## Parameters

| Name | Type | Description |
|---|---|---|
| `fileHandle` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | A file handle indicating the access request and thus indirectly the position inside the file. |
| `position` | [UInt64](https://learn.microsoft.com/dotnet/api/system.uint64) | The position to be set for the file handle in the file. If a Read or Write is called it starts at that position. If the position is higher than the file size the position is set to the end of the file. |

## Applies to

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