Search code examples
c#windows-phone-8

SharedStorageAccessManager is not accessible


I want to use SharedStorageAccessManager in my Windows Phone 8.1 application to copy file passed to it by FileTypeAssociation. Such example is shown here: https://msdn.microsoft.com/library/windows/apps/windows.phone.storage.sharedaccess.sharedstorageaccessmanager.copysharedfileasync(v=vs.105).aspx

The problem is I cannot find the way to reference it to my project. I've searched for Windows.Phone.Storage.SharedAccess but without success.

Is there anyone who know how can I add such lib?


Solution

  • If you are building a Universal app then you get a StorageFile directly from the activation arguments via the Files property and don't need to use the SSAM.