从文件夹RelativeID获取文件夹 - Windows Phone

时间:2014-09-07 13:55:43

标签: c# windows-phone-8.1 storagefolder

如何在Windows Phone 8.1中从文件夹相对ID获取文件夹?

StorageFolder folder = await StorageFolder.GetFolderFromPathAsync(path);

此代码适用于完整路径,而不是relativeID。

1 个答案:

答案 0 :(得分:-1)

public sealed class StorageFolder
{
    IAsyncOperation<StorageFolder> GetFolderAsync(string name);

。 。

StorageFolder folder = await StorageFolder.GetFolderAsync(folderId);