Skip to main content
All docs
V25.1
  • 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

    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