OpcFileGetPositionMethodNode.FileGetPositionExCallback Delegate

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

GetPosition is used to provide the current position of the file handle.

C#

[CLSCompliant(false)]
public delegate ulong FileGetPositionExCallback(OpcMethodContext context, [OpcArgument("FileHandle", Description = "The file handle associated with the file its position is to be queried.")] uint fileHandle);


Attributes CLSCompliantAttribute


Parameters

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

UInt64

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 fileHandle or the SessionId is not known. * BadUnexpectedErrorAn unexpected error occurred while querying the position in the file.