Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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

#Parameters

Name Type Description
stream Stream

A stream.

fileName String

The file name.

#Optional Parameters

Name Type Default Description
fileType PredefinedFileType Any

The file type.

#Returns

Type Description
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