共用方式為


BackgroundAudioTrack.CreateFromFileAsync(IStorageFile) 方法

定義

從音訊檔案建立背景曲目。

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)

參數

file
IStorageFile

代表來源音訊檔案的 StorageFile 物件。

傳回

包含音訊檔案內容的新背景音訊播放軌物件。

屬性

適用於