StorageApplicationPermissions.FutureAccessList | futureAccessList property

Applies to Windows and Windows Phone

Gets an object that represents a list that an app maintains so that the app can store files and/or locations (like folders) and easily access these items in the future.

Syntax


Public Shared ReadOnly Property FutureAccessList As StorageItemAccessList

Property value

Type: StorageItemAccessList

The future-access list object.

Examples

This example shows you how to use the FutureAccessList property to store a file that was picked by the user so that you can access it again later.



var openPicker = new Windows.Storage.Pickers.FileOpenPicker();
openPicker.pickSingleFileAsync().then(function (pickedFile) {
    if (pickedFile) {
        // Store the file to access again later
        var listToken = Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList.add(pickedFile);

        // Add code to process the file that the user picked
    } else {
        // No file
    }
});

Make sure you check that a file was picked before you process the pickedFile (a StorageFile object), as shown in the example.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Storage.AccessCache
Windows::Storage::AccessCache [C++]

Metadata

Windows.winmd

See also

StorageApplicationPermissions

 

 

Show:
© 2014 Microsoft