Bewerken

Share via


SaveFileDialog.OpenFile Method

Definition

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