SaveFileDialog.OpenFile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a read-write file stream for the filename selected by the user using SaveFileDialog.
public:
System::IO::Stream ^ OpenFile();
[System.Security.SecurityCritical]
public System.IO.Stream OpenFile ();
public System.IO.Stream OpenFile ();
[<System.Security.SecurityCritical>]
member this.OpenFile : unit -> System.IO.Stream
member this.OpenFile : unit -> System.IO.Stream
Public Function OpenFile () As Stream
Returns
A new Stream that contains the selected file.
- Attributes
Exceptions
No files were selected in the dialog.
Remarks
The file stream that is returned is opened with read-write access (Create and ReadWrite).
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.