StreamedFileDataRequest Class

Definition

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 ref class StreamedFileDataRequest sealed : IClosable, IStreamedFileDataRequest, IOutputStream
class StreamedFileDataRequest sealed : IClosable, IStreamedFileDataRequest, IOutputStream
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class StreamedFileDataRequest : System.IDisposable, IStreamedFileDataRequest, IOutputStream
Public NotInheritable Class StreamedFileDataRequest
Implements IDisposable, IOutputStream, IStreamedFileDataRequest
Inheritance
StreamedFileDataRequest
Attributes
Implements
<xref href="System.IDisposable?alt=System.IDisposable&text=IDisposable" data-throw-if-not-resolved="True"/> <xref href="Windows.Storage.IStreamedFileDataRequest?alt=Windows.Storage.IStreamedFileDataRequest&text=IStreamedFileDataRequest" data-throw-if-not-resolved="True"/> <xref href="Windows.Storage.Streams.IOutputStream?alt=Windows.Storage.Streams.IOutputStream&text=IOutputStream" data-throw-if-not-resolved="True"/>

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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.

Methods

Close()

Releases system resources that are exposed by the current stream indicating that the data request is complete.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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.

FlushAsync()

Flushes the data in the current stream.

WriteAsync(IBuffer)

Writes data from a buffer to the current stream.

Applies to