QuickOPC User's Guide and Reference
FromFileModeAndFileAccess Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.FileTransfer Namespace > UAOpenFileModesUtilities Class : FromFileModeAndFileAccess Method
File mode. Specifies how the file should be opened.
File access, such as read, write, or read/write.
Creates OPC UA open file modes enumeration value from file mode and file access.
Syntax
'Declaration
 
Public Shared Function FromFileModeAndFileAccess( _
   ByVal fileMode As FileMode, _
   ByVal fileAccess As FileAccess _
) As UAOpenFileModes
'Usage
 
Dim fileMode As FileMode
Dim fileAccess As FileAccess
Dim value As UAOpenFileModes
 
value = UAOpenFileModesUtilities.FromFileModeAndFileAccess(fileMode, fileAccess)
public static UAOpenFileModes FromFileModeAndFileAccess( 
   FileMode fileMode,
   FileAccess fileAccess
)
public:
static UAOpenFileModes FromFileModeAndFileAccess( 
   FileMode fileMode,
   FileAccess fileAccess
) 

Parameters

fileMode
File mode. Specifies how the file should be opened.
fileAccess
File access, such as read, write, or read/write.

Return Value

Returns OPC UA open file modes enumeration value that represents the file and file access specified in the input arguments.
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

Reference

UAOpenFileModesUtilities Class
UAOpenFileModesUtilities Members
OpenFile Method
OpcLabs.EasyOpc.UA.FileTransfer.IEasyUAFileTransferExtension.OpenFile(OpcLabs.EasyOpc.UA.FileTransfer.IEasyUAFileTransfer,OpcLabs.EasyOpc.UA.UAEndpointDescriptor,OpcLabs.EasyOpc.UA.UANodeDescriptor,System.String,OpcLabs.EasyOpc.UA.FileTransfer.UAOpenFileModes)
OpenStream(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodeDescriptor,UAOpenFileModes) Method