Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StreamedFileDataRequest class

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

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 (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

[Version(0x06020000)]

See also

Object
IOutputStream
IClosable
IStreamedFileDataRequest

 

 

Show:
© 2015 Microsoft