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 sealed class StreamedFileDataRequest : IOutputStream, IDisposable, IStreamedFileDataRequest
Attributes
- MarshalingBehaviorAttribute(Agile)
- VersionAttribute(NTDDI_WIN8)
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.
| Method | Description |
|---|---|
| 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.
Windows Phone 8
This API is not implemented and will throw an exception if called.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
Build date: 5/16/2013