Playlist.SaveAsAsync 方法

定义

重载

SaveAsAsync(IStorageFolder, String, NameCollisionOption)

异步将播放列表保存到指定的文件和文件夹。

SaveAsAsync(IStorageFolder, String, NameCollisionOption, PlaylistFormat)

以指定的格式异步将播放列表保存到指定的文件和文件夹。

SaveAsAsync(IStorageFolder, String, NameCollisionOption)

异步将播放列表保存到指定的文件和文件夹。

public:
 virtual IAsyncOperation<StorageFile ^> ^ SaveAsAsync(IStorageFolder ^ saveLocation, Platform::String ^ desiredName, NameCollisionOption option) = SaveAsAsync;
/// [Windows.Foundation.Metadata.Overload("SaveAsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> SaveAsAsync(IStorageFolder const& saveLocation, winrt::hstring const& desiredName, NameCollisionOption const& option);
[Windows.Foundation.Metadata.Overload("SaveAsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> SaveAsAsync(IStorageFolder saveLocation, string desiredName, NameCollisionOption option);
function saveAsAsync(saveLocation, desiredName, option)
Public Function SaveAsAsync (saveLocation As IStorageFolder, desiredName As String, option As NameCollisionOption) As IAsyncOperation(Of StorageFile)

参数

saveLocation
IStorageFolder

要在其中保存播放列表的文件夹。

desiredName
String

Platform::String

winrt::hstring

要保存的播放列表的名称。

option
NameCollisionOption

将播放列表保存到现有文件时要执行的操作。 NameCollisionOption 枚举的值之一。

返回

表示将播放列表保存到指定文件和文件夹的异步操作。

属性

另请参阅

适用于

SaveAsAsync(IStorageFolder, String, NameCollisionOption, PlaylistFormat)

以指定的格式异步将播放列表保存到指定的文件和文件夹。

public:
 virtual IAsyncOperation<StorageFile ^> ^ SaveAsAsync(IStorageFolder ^ saveLocation, Platform::String ^ desiredName, NameCollisionOption option, PlaylistFormat playlistFormat) = SaveAsAsync;
/// [Windows.Foundation.Metadata.Overload("SaveAsWithFormatAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> SaveAsAsync(IStorageFolder const& saveLocation, winrt::hstring const& desiredName, NameCollisionOption const& option, PlaylistFormat const& playlistFormat);
[Windows.Foundation.Metadata.Overload("SaveAsWithFormatAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> SaveAsAsync(IStorageFolder saveLocation, string desiredName, NameCollisionOption option, PlaylistFormat playlistFormat);
function saveAsAsync(saveLocation, desiredName, option, playlistFormat)
Public Function SaveAsAsync (saveLocation As IStorageFolder, desiredName As String, option As NameCollisionOption, playlistFormat As PlaylistFormat) As IAsyncOperation(Of StorageFile)

参数

saveLocation
IStorageFolder

要在其中保存播放列表的文件夹。

desiredName
String

Platform::String

winrt::hstring

要保存的播放列表的名称。

option
NameCollisionOption

将播放列表保存到现有文件时要执行的操作。 NameCollisionOption 枚举的值之一。

playlistFormat
PlaylistFormat

播放列表格式。 PlaylistFormat 枚举的值之一。

返回

表示将播放列表保存到指定文件和文件夹的异步操作。

属性

另请参阅

适用于