Skip to content

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 ​

NameTypeDescription
contextOpcMethodContextThe OpcMethodContext to use when updating the position in the file. This instance will be also updated with the outcome of the method call.
fileHandleUInt32A file handle indicating the access request and thus indirectly the position inside the file.
positionUInt64The 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:

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59