Поделиться через


FileSavePicker Class

Definition

Represents a dialog that allows the user choose a file and location to save.

public ref class FileSavePicker sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.Storage.Pickers.IFileSavePickerFactory, 65544, "Microsoft.Windows.Storage.Pickers.StoragePickersContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Storage.Pickers.StoragePickersContract, 65544)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FileSavePicker final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.Storage.Pickers.IFileSavePickerFactory), 65544, "Microsoft.Windows.Storage.Pickers.StoragePickersContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Storage.Pickers.StoragePickersContract), 65544)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FileSavePicker
function FileSavePicker(windowId)
Public NotInheritable Class FileSavePicker
Inheritance
Object Platform::Object IInspectable FileSavePicker
Attributes

Constructors

FileSavePicker(WindowId)

Creates a new instance of the FileSavePicker class with WindowId to reference the parent for the file picker dialog.

Properties

CommitButtonText

Specifies the text displayed on commit button. If not specified, the system default is used.

DefaultFileExtension

Specifies the default file extension, which will be appended after the default file name. If it's not specified, nothing will be appended after the default file name.

FileTypeChoices

The categorized extensions types. If not specified, allow All Files *.* is used.

SuggestedFileName

Specifies the default file name to display when the picker is opened. If not specified, the system default value is used.

SuggestedFolder

The folder that is suggested for the user to save the file.

SuggestedStartFolder
SuggestedStartLocation

Specifies the initial location as a PickerLocationId. If not specified, PickerLocationId.Unspecified is used as the default value.

Methods

PickSaveFileAsync()

Displays a dialog that allows the user to configure the file path to save.

Applies to