how to create StreamedFile?

mc 3,221 Reputation points

CreateStreamedFileAsync will make the file readonly?

how to create file that can write?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
655 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 7,696 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    CreateStreamedFileAsync Method creates a StorageFile to represent the specified stream of data.This method lets the app produce the data on-demand by specifying a function to be invoked when the StorageFile that represents the stream is first accessed.

    Use StreamedFileDataRequestedHandler produce the data stream represented by the returned StorageFile and lets the app produce data on-demand instead of writing the contents of the file at creation time.

    For more details about how to create and write a file with StorageFile. I suggest you could refer to the Doc:Create, write, and read a file

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful