Share via


BackgroundAudioTrack.CreateFromFileAsync(IStorageFile) Method

Definition

Creates a background audio track from an audio file.

public:
 static IAsyncOperation<BackgroundAudioTrack ^> ^ CreateFromFileAsync(IStorageFile ^ file);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<BackgroundAudioTrack> CreateFromFileAsync(IStorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<BackgroundAudioTrack> CreateFromFileAsync(IStorageFile file);
function createFromFileAsync(file)
Public Shared Function CreateFromFileAsync (file As IStorageFile) As IAsyncOperation(Of BackgroundAudioTrack)

Parameters

file
IStorageFile

A StorageFile object representing the source audio file.

Returns

A new background audio track object containing the contents of the audio file.

Attributes

Applies to