Back to Devexpress

ISaveFilePicker.SaveAsync(Stream, String, PredefinedFileType) Method

maui-devexpress-dot-maui-dot-mvvm-dot-isavefilepicker-dot-saveasync-x28-system-dot-io-dot-stream-system-dot-string-devexpress-dot-maui-dot-mvvm-dot-predefinedfiletype-x29.md

latest1.7 KB
Original Source

ISaveFilePicker.SaveAsync(Stream, String, PredefinedFileType) Method

Saves the stream asynchronously. The method returns the Task that is completed when the save operation is finished or canceled.

Namespace : DevExpress.Maui.Mvvm

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
Task<bool> SaveAsync(
    Stream stream,
    string fileName,
    PredefinedFileType fileType = PredefinedFileType.Any
)

Parameters

NameTypeDescription
streamStream

A stream.

| | fileName | String |

The file name.

|

Optional Parameters

NameTypeDefaultDescription
fileTypePredefinedFileTypeAny

The file type.

|

Returns

TypeDescription
Task<Boolean>

An operation that executes asynchronously and completes when the save operation is finished. The Task returns true if the save operation is successful; otherwise, false.

|

See Also

ISaveFilePicker Interface

ISaveFilePicker Members

DevExpress.Maui.Mvvm Namespace