StreamedFileDataRequest class

Applies to Windows only

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.

Syntax


Public NotInheritable Class StreamedFileDataRequest
    Implements IOutputStream, _
    IDisposable, _
    IStreamedFileDataRequest

Attributes

[Version(0x06020000)]

Members

The StreamedFileDataRequest class has these types of members:

Methods

The StreamedFileDataRequest class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Close [C++, JavaScript]Releases system resources that are exposed by the current stream indicating that the data request is complete.
Dispose [C#, VB]Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
FailAndClose 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.
FlushAsync Flushes the data in the current stream.
WriteAsync Writes data from a buffer to the current stream.

 

Remarks

This object is passed to the app's StreamedFileDataRequestedHandler function when a stream that is represented by a StorageFile is accessed. Define the StreamedFileDataRequestedHandler function if you use CreateStreamedFileAsync or ReplaceWithStreamedFileAsync to get a StorageFile that represents the stream.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft