Skip to content

Reference

OpcFileWriteMethodNode.FileWriteExCallback Delegate

Write is used to write a part of the file starting from the current file position.

Reference

OpcFileWriteMethodNode.FileWriteExCallback Delegate ​

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Write is used to write a part of the file starting from the current file position. The file position is advanced by the number of bytes written.

Syntax ​

csharp
[CLSCompliant(false)]
public delegate void OpcFileWriteMethodNode.FileWriteExCallback(
    OpcMethodContext context,
    uint fileHandle,
    ByteString data)
vbnet
<CLSCompliant(False)>
Public Delegate Sub OpcFileWriteMethodNode.FileWriteExCallback(
    context As OpcMethodContext,
    fileHandle As UInteger,
    data As ByteString)

Parameters ​

NameTypeDescription
contextOpcMethodContextThe OpcMethodContext to use when writing data to 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.
dataByteStringContains the data to be written at the position of the file. It is server-dependent whether the written data are persistently stored if the session is ended without calling the Close Method with the file handle.

Remarks ​

This method does provide the following OpcResult information:

Applies to ​

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