StreamedFileDataRequestedHandler delegate

Applies to Windows only

Represents a function that the app defines to produce the data stream of a StorageFile when that StorageFile is first accessed.

Syntax


Public Delegate Sub StreamedFileDataRequestedHandler( 
  stream As StreamedFileDataRequest 
)

Attributes

[Version(0x06020000)]

Parameters

stream

Type: StreamedFileDataRequest

The request for the streamed data in the StorageFile that was created by CreateStreamedFileAsync or ReplaceWithStreamedFileAsync.

Remarks

This function should produce the data stream represented by a StorageFile that was returned by the CreateStreamedFileAsync or ReplaceWithStreamedFileAsync method.

Using CreateStreamedFileAsync or ReplaceWithStreamedFileAsync in conjunction with a StreamedFileDataRequestedHandler function lets the you produce data on-demand instead of writing the contents of a file at creation time. You can defer expensive operations to produce the data until that data needed (when it is first accessed) and avoid creating unnecessary delays in user interaction while the data is produced.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft