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 对象。

返回

包含音频文件内容的新后台音频轨道对象。

属性

适用于