Share via


StorageItemMostRecentlyUsedList.GetFileAsync Method

Definition

Overloads

GetFileAsync(String)

Retrieves the specified storageFile from the most recently used (MRU) list.

GetFileAsync(String, AccessCacheOptions)

Retrieves the specified storageFile from the most recently used (MRU) list using the specified options.

GetFileAsync(String)

Retrieves the specified storageFile from the most recently used (MRU) list.

public:
 virtual IAsyncOperation<StorageFile ^> ^ GetFileAsync(Platform::String ^ token) = GetFileAsync;
/// [Windows.Foundation.Metadata.Overload("GetFileAsync")]
IAsyncOperation<StorageFile> GetFileAsync(winrt::hstring const& token);
[Windows.Foundation.Metadata.Overload("GetFileAsync")]
public IAsyncOperation<StorageFile> GetFileAsync(string token);
function getFileAsync(token)
Public Function GetFileAsync (token As String) As IAsyncOperation(Of StorageFile)

Parameters

token
String

Platform::String

winrt::hstring

The token of the storageFile to retrieve.

Returns

When this method completes successfully, it returns the storageFile that is associated with the specified token.

Implements

M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(System.String) M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(Platform::String) M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(winrt::hstring)
Attributes

See also

Applies to

GetFileAsync(String, AccessCacheOptions)

Retrieves the specified storageFile from the most recently used (MRU) list using the specified options.

public:
 virtual IAsyncOperation<StorageFile ^> ^ GetFileAsync(Platform::String ^ token, AccessCacheOptions options) = GetFileAsync;
/// [Windows.Foundation.Metadata.Overload("GetFileWithOptionsAsync")]
IAsyncOperation<StorageFile> GetFileAsync(winrt::hstring const& token, AccessCacheOptions const& options);
[Windows.Foundation.Metadata.Overload("GetFileWithOptionsAsync")]
public IAsyncOperation<StorageFile> GetFileAsync(string token, AccessCacheOptions options);
function getFileAsync(token, options)
Public Function GetFileAsync (token As String, options As AccessCacheOptions) As IAsyncOperation(Of StorageFile)

Parameters

token
String

Platform::String

winrt::hstring

The token of the storageFile to retrieve.

options
AccessCacheOptions

The enum value that describes the behavior to use when the app accesses the item.

Returns

When this method completes successfully, it returns the storageFile that is associated with the specified token.

Implements

M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(System.String,Windows.Storage.AccessCache.AccessCacheOptions) M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(Platform::String,Windows.Storage.AccessCache.AccessCacheOptions) M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(winrt::hstring,Windows.Storage.AccessCache.AccessCacheOptions)
Attributes

See also

Applies to