OpcFileSetPositionMethodNode.FileSetPositionExCallback Delegate

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll

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


public delegate void FileSetPositionExCallback(OpcMethodContext context, [OpcArgument("FileHandle", Description = "The file handle associated with the file its position is to be updated.")] uint fileHandle, [OpcArgument("Position", Description = "The new position within the file.")] ulong position);

Attributes CLSCompliantAttribute


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.


This method does provide the following OpcResult information: * BadInvalidArgumentThe file handle specified by fileHandle or the SessionId is not known.