I​Streamed​File​Data​Request I​Streamed​File​Data​Request I​Streamed​File​Data​Request I​Streamed​File​Data​Request Interface


Represents a sequential-access output stream that indicates a request for the data stream of a StorageFile that was created by calling CreateStreamedFileAsync or ReplaceWithStreamedFileAsync.

public : interface IStreamedFileDataRequestpublic interface IStreamedFileDataRequestPublic Interface IStreamedFileDataRequest// You can use this interface in JavaScript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


FailAndClose(StreamedFileFailureMode) FailAndClose(StreamedFileFailureMode) FailAndClose(StreamedFileFailureMode) FailAndClose(StreamedFileFailureMode)

Indicates that the data can't be streamed and releases system resources that are exposed by the current stream indicating that the data request is complete.

public : void FailAndClose(StreamedFileFailureMode failureMode)public void FailAndClose(StreamedFileFailureMode failureMode)Public Function FailAndClose(failureMode As StreamedFileFailureMode) As void// You can use this method in JavaScript.
StreamedFileFailureMode StreamedFileFailureMode StreamedFileFailureMode StreamedFileFailureMode

The enum value that indicates why the data stream can't be accessed.