Click or drag to resize

SaveFileDialog Class

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

Namespace:  Wisej.Web
Assembly:  Wisej.Framework (in Wisej.Framework.dll) Version: 2.0.0.0
Syntax
public class SaveFileDialog : FileDialog

The SaveFileDialog type exposes the following members.

Constructors
  NameDescription
Public methodSaveFileDialog
Initializes a new instance of SaveFileDialog.
Public methodSaveFileDialog(IContainer)
Initializes a new instance of the SaveFileDialog extender with a specified container.
Top
Properties
  NameDescription
Public propertyAddExtension
Returns or sets whether the dialog box automatically adds an extension to a file name if the user omits the extension.
(Inherited from FileDialog.)
Public propertyCheckFileExists
Returns or sets whether the dialog box displays a warning if the user specifies a file name that does not exist.
(Inherited from FileDialog.)
Public propertyCreatePrompt
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.
Public propertyDefaultExtension
Returns or sets the default file name extension.
(Inherited from FileDialog.)
Public propertyDialogTemplate
Returns or sets the type of the common dialog UI control to show when calling the ShowDialog method.
(Inherited from CommonDialog.)
Public propertyFileName
Returns or sets a string containing the file name selected in the file dialog box.
(Inherited from FileDialog.)
Public propertyFileNames
Returns the file names of all selected files in the dialog box.
(Inherited from FileDialog.)
Public propertyFileSystem
Returns the IFileSystemProvider that contains the selected FileName.
(Inherited from FileDialog.)
Public propertyFilter
Returns or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box.
(Inherited from FileDialog.)
Public propertyFilterIndex
Returns or sets the index of the filter currently selected in the file dialog box.
(Inherited from FileDialog.)
Public propertyInitialDirectory
Returns or sets the initial directory displayed by the file dialog box.
(Inherited from FileDialog.)
Public propertyOverwritePrompt
Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that already exists.
Public propertyCode exampleRoots
List of root IFileSystemProvider file systems displayed by the FileDialog.
(Inherited from FileDialog.)
Public propertyShowHelp
Returns or sets whether the Help button is displayed in the file dialog box.
(Inherited from FileDialog.)
Public propertyTag
Returns or sets an object that contains data about the control.
(Inherited from CommonDialog.)
Public propertyTitle
Returns or sets the file dialog box title.
(Inherited from FileDialog.)
Public propertyWindowState
Returns or sets the initial WindowState of the common dialog.
(Inherited from CommonDialog.)
Top
Methods
  NameDescription
Protected methodCreateUI (Inherited from FileDialog.)
Protected methodDispose (Inherited from CommonDialog.)
Public methodGetRoot
Returns the IFileSystemProvider that contains the specified path.
(Inherited from FileDialog.)
Public methodMapPath
Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.
(Inherited from FileDialog.)
Protected methodOnFileOk
Fires the FileOk event.
(Inherited from FileDialog.)
Protected methodOnHelpRequested
Fires the HelpRequest event.
(Inherited from CommonDialog.)
Protected methodOnLoadPath
Fires the LoadPath event.
(Inherited from CommonDialog.)
Public methodOpenFile
Opens the file with read/write permission selected by the user.
Public methodProcessFileNames
Receives the file names selected by the user and validates them according to the properties set in the FileDialog instance.
(Overrides FileDialogProcessFileNames(String).)
Protected methodPromptFileCreate
Asks the user's permission to create the specified fileName.
Protected methodPromptFileNotFound
Informs the user that the file specified in fileName doesn't exist. You can override this method to provide your text and localization.
(Inherited from FileDialog.)
Protected methodPromptFileOverwrite
Asks the user's permission to overwrite the specified fileName.
Public methodReset
Resets all dialog box options to their default values.
(Overrides FileDialogReset.)
Public methodShowDialog
Runs a common dialog box with a default owner.
(Inherited from CommonDialog.)
Public methodShowDialog(ActionDialogResult)
Runs a common dialog box with a default owner.
(Inherited from CommonDialog.)
Public methodShowDialog(Form)
Runs a common dialog box with the specified owner.
(Inherited from CommonDialog.)
Public methodShowDialog(Form, ActionDialogResult)
Runs a common dialog box with the specified owner.
(Inherited from CommonDialog.)
Public methodShowDialogAsync
Runs a common dialog box with the specified owner asynchronously.
(Inherited from CommonDialog.)
Public methodToString
Returns a string that represents the FileDialog.
(Inherited from FileDialog.)
Top
Events
  NameDescription
Public eventFileOk
Fired when the user clicks on the Open or Save button on a file dialog box.
(Inherited from FileDialog.)
Public eventHelpRequested
Fired when the user clicks the Help button on a common dialog box.
(Inherited from CommonDialog.)
Public eventLoadPath
EXPERIMENTAL: Fired when the file dialog is loading a file or folder.
(Inherited from CommonDialog.)
Top
Extension Methods
  NameDescription
Public Extension MethodBeep
Sounds a tone through the computer's speaker.
(Defined by Interaction.)
Public Extension MethodInputBox
Displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
(Defined by Interaction.)
Public Extension MethodInputBoxAsync
Asynchronous displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
(Defined by Interaction.)
Public Extension MethodMsgBox
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
(Defined by Interaction.)
Public Extension MethodMsgBoxAsync
Asynchronously displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
(Defined by Interaction.)
Top
Remarks

You can:

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

See Also