Skip to content

Reference

OpcFileMode Enum

Defines the type of access and how the system should open an existing file.

Reference

OpcFileMode Enum ​

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Defines the type of access and how the system should open an existing file.

Syntax ​

csharp
[Flags]
public enum OpcFileMode : byte
vbnet
<Flags>
Public Enum OpcFileMode As Byte

Inheritance ​

Object → ValueType → Enum → OpcFileMode

Fields ​

NameValueDescription
Append8Specifies that an existing file is to be opened at the end of the file; otherwise at the beginning of the file. Combine with Write to continue with write access. To continue with read access combine with Read, this requires to manually seek to a position before the end of the file before reading.
AppendReadRead | AppendSpecifies that an existing file is to be opened at the end of the file for reading. This options combines the options Append and Read. Combine with Write for read/write access. This requires to manually seek to a position before the end of the file before reading.
AppendWriteWrite | AppendSpecifies that an existing file is to be opened at the end of the file for writing. This option combines the options Append and Write. Combine with Read for read/write access.
EraseExisting4Specifies that an existing file is to be opened and its content is to be erased so that its size is zero bytes. This option requires the option Write.
Read1Specifies that an existing file is to be opened for reading. Combine with Write for read/write access.
ReadWriteRead | WriteSpecifies that an existing file is to be opened for reading and writing.
TruncateWrite | EraseExistingSpecifies that an existing file is to be opened and its content is to be erased so that its size is zero bytes. This option combines the options EraseExisting and Write.
Write2Specifies that an existing file is to be opened for writing. Combine with Read for read/write access.

Applies to ​

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