Dela via


SystemMediaTransportControlsDisplayUpdater.CopyFromFileAsync Method

Definition

Initialize the media properties using the specified file.

public:
 virtual IAsyncOperation<bool> ^ CopyFromFileAsync(MediaPlaybackType type, StorageFile ^ source) = CopyFromFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> CopyFromFileAsync(MediaPlaybackType const& type, StorageFile const& source);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> CopyFromFileAsync(MediaPlaybackType type, StorageFile source);
function copyFromFileAsync(type, source)
Public Function CopyFromFileAsync (type As MediaPlaybackType, source As StorageFile) As IAsyncOperation(Of Boolean)

Parameters

type
MediaPlaybackType

The type of media.

source
StorageFile

The file to initialize the media properties.

Returns

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

Attributes

Applies to