Reference
OpcFileSetPositionMethodNode.FileSetPositionExCallback Delegate
SetPosition is used to set the current position of the file handle.
Reference
OpcFileSetPositionMethodNode.FileSetPositionExCallback Delegate
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
SetPosition is used to set the current position of the file handle.
Syntax
csharp
[CLSCompliant(false)]
public delegate void OpcFileSetPositionMethodNode.FileSetPositionExCallback(
OpcMethodContext context,
uint fileHandle,
ulong position)vbnet
<CLSCompliant(False)>
Public Delegate Sub OpcFileSetPositionMethodNode.FileSetPositionExCallback(
context As OpcMethodContext,
fileHandle As UInteger,
position As ULong)Parameters
| Name | Type | Description |
|---|---|---|
context | OpcMethodContext | The OpcMethodContext to use when updating the position in the file. This instance will be also updated with the outcome of the method call. |
fileHandle | UInt32 | A file handle indicating the access request and thus indirectly the position inside the file. |
position | 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. |
Remarks
This method does provide the following OpcResult information:
- BadInvalidArgumentThe file handle specified by
fileHandleor the SessionId is not known.
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

