SystemMediaTransportControlsDisplayUpdater.CopyFromFileAsync | copyFromFileAsync method

Initialize the media properties using the specified file.

Syntax


Public Function CopyFromFileAsync(
  type As MediaPlaybackType,  
  source As StorageFile 
) As IAsyncOperation(Of Boolean)

Parameters

type

Type: MediaPlaybackType

The type of media.

source

Type: StorageFile

The file to initialize the media properties.

Return value

Type: IAsyncOperation<Boolean>

When this method completes, it returns a boolean value that indicates true if the operation succeeded; otherwise, false.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media
Windows::Media [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Media
Windows::Media [C++]

Metadata

Windows.winmd

See also

SystemMediaTransportControlsDisplayUpdater

 

 

Show:
© 2015 Microsoft