Reference
OpcFileGetPositionMethodNode.FileGetPositionExCallback Delegate
GetPosition is used to provide the current position of the file handle.
Reference
OpcFileGetPositionMethodNode.FileGetPositionExCallback Delegate
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
GetPosition is used to provide the current position of the file handle.
Syntax
csharp
[CLSCompliant(false)]
public delegate ulong OpcFileGetPositionMethodNode.FileGetPositionExCallback(
OpcMethodContext context,
uint fileHandle)vbnet
<CLSCompliant(False)>
Public Delegate Function OpcFileGetPositionMethodNode.FileGetPositionExCallback(
context As OpcMethodContext,
fileHandle As UInteger) As ULongParameters
| Name | Type | Description |
|---|---|---|
context | OpcMethodContext | The OpcMethodContext to use when querying 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. |
Returns
The position of the file handle in the file. If a Read or Write is called it starts at that position.
Remarks
This method does provide the following OpcResult information:
- BadInvalidArgumentThe file handle specified by
fileHandleor the SessionId is not known. - BadUnexpectedErrorAn unexpected error occurred while querying the position in the file.
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

