OPC Studio User's Guide and Reference
UAOpenFileModes Enumeration



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.FileTransfer Namespace : UAOpenFileModes Enumeration
Indicates whether the file should be opened only for read operations or for read and write operations and where the initial position is set.
Syntax
'Declaration
 
<ComVisibleAttribute(False)>
<FlagsAttribute()>
Public Enum UAOpenFileModes 
   Inherits System.Enum
   Implements System.IComparable, System.IConvertible, System.IFormattable 
'Usage
 
Dim instance As UAOpenFileModes
[ComVisible(false)]
[Flags()]
public enum class UAOpenFileModes : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
Members
MemberValueDescription
Append8When set, the file is opened at end of the file, otherwise at begin of the file.

Remarks:

Corresponds to bit 3 in 'mode' argument of the Open method on OPC UA FileType ().

"The SetPosition Method can be used to change the position."

EraseExisting4The existing content of the file is erased and an empty file is provided.

Remarks:

Corresponds to bit 2 in 'mode' argument of the Open method on OPC UA FileType ().

This bit can only be set if the file is opened for writing (Write bit is set).

Read1The file is opened for reading. If this bit is not set, the Read Method cannot be executed.

Remarks:

Corresponds to bit 0 in 'mode' argument of the Open method on OPC UA FileType ().

Reserved240Reserved for future use.

Remarks:

Corresponds to bits 4-7 in 'mode' argument of the Open method on OPC UA FileType ().

"Shall always be zero."

Write2The file is opened for writing. If this bit is not set, the Write Method cannot be executed.

Remarks:

Corresponds to bit 1 in 'mode' argument of the Open method on OPC UA FileType ().

Remarks

Corresponds to bits of the 'mode' argument of the Open method on OPC UA FileType ().

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         OpcLabs.EasyOpc.UA.FileTransfer.UAOpenFileModes

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also