Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

access denied tring to save a file uwp xamarin

 FolderPicker folderPicker = new FolderPicker();
            folderPicker.FileTypeFilter.Add("*");
            StorageFolder folder = await folderPicker.PickSingleFolderAsync();
            if (folder != null)
            {
                StorageApplicationPermissions.FutureAccessList.AddOrReplace("PickedFolderToken", folder);
            }
            StorageFolder newFolder;
     
            newFolder = await StorageApplicationPermissions.FutureAccessList.GetFolderAsync("PickedFolderToken");
            await newFolder.CreateFileAsync("test.txt");
            // Fails. Same folder, create from path with an added file name.
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #access #denied #tring #save #file #uwp #xamarin
ADD COMMENT
Topic
Name
6+5 =