OPC Studio User's Guide and Reference
OpenOrCreateStream Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.IO.Extensions Namespace > IEasyUAFileTransferExtension2 Class : OpenOrCreateStream Method
Opens an existing OPC UA file, or creates a new OPC UA file if one does not exist, and returns a System.IO.Stream to access the file data.

If the file already exists, the method opens it. If the file does not exist, the method creates a new file. In both cases, the method returns a System.IO.Stream object that can be used to access the file data.

Overload List
OverloadDescription
Opens or creates an OPC UA file, and returns a System.IO.Stream, using default parameters.  
Opens or creates an OPC UA file, and returns a System.IO.Stream, specifying the file mode.  
Opens or creates an OPC UA file, and returns a System.IO.Stream, specifying the file mode, and buffer size.  
Opens or creates an OPC UA file, and returns a System.IO.Stream, specifying the file mode, and file access flags.  
Opens or creates an OPC UA file, and returns a System.IO.Stream, specifying the file mode, file access flags, and buffer size.  
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