SaveFileDialog

Wisej.Web.SaveFileDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.1.0.0)

Prompts the user to select a location for saving a file on the server.

public class SaveFileDialog : FileDialog

You can:

You must add at least one IFileSystemProvider to the Roots collection before showing the dialog.

Constructors

Initializes a new instance of SaveFileDialog.

Initializes a new instance of the SaveFileDialog extender with a specified container.

Name
Type
Description

container

An IContainer that represents the container of the SaveFileDialog component.

Properties

Boolean: Returns or sets a value indicating whether the dialog box prompts the user for permission to create a file, if the file specified file does not exist. (Default: False)

Boolean: Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that already exists. (Default: True)

Methods

Opens the file with read/write permission selected by the user.

Returns: Stream. A Stream that specifies the read/write file selected by the user.

Throws:

Receives the file names selected by the user and validates them according to the properties set in the FileDialog instance.

Parameter
Type
Description

fileNames

Array containing the selected file paths.

Returns: Boolean. True if the files have been validated and the dialog can close; otherwise false to keep the dialog open.

Resets all dialog box options to their default values.

Last updated