FileInformation.OpenReadAsync | openReadAsync method

Opens a read-only, random-access stream over the StorageFile.

Syntax


Public Function OpenReadAsync() As IAsyncOperation(Of IRandomAccessStreamWithContentType)

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<IRandomAccessStreamWithContentType>

When this method completes successfully, it returns a read-only, random-access stream (type IRandomAccessStreamWithContentType).

Requirements (device family)

Device family

Desktop

API contract

Windows.Storage.BulkAccess.BulkAccessContract, introduced version 1.0

Namespace

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

Metadata

Windows.Storage.BulkAccess.BulkAccessContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

FileInformation
Windows.Storage.StorageFile class
Windows.Storage.Streams.IRandomAccessStreamWithContentType interface

 

 

Show:
© 2015 Microsoft