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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.