Connectivity Software User's Guide and Reference
OpenOrCreateStream Method



OpcLabs.EasyOpcUACore 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 aSystem.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 an existing OPC UA file, or creates a new OPC UA file if one does not exist, and returns aOpens 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