-1

以下代码行抛出 System.UnauthorizedAccessException:

StorageFile file
    = await Windows.Storage.ApplicationData.Current.LocalFolder.GetFileAsync("ms-appx:///Assets/image.png");
4

1 回答 1

2
var uri = new Uri("ms-appx:///Assets/image.png");
var file = await StorageFile.GetFileFromApplicationUriAsync(uri);
于 2013-03-26T19:33:36.790 回答