StorageItemAccessList.GetFileAsync Method

Definition

Overloads

GetFileAsync(String)

Retrieves the specified StorageFile from the list.

GetFileAsync(String, AccessCacheOptions)

Retrieves the StorageFile from the list using the specified options.

GetFileAsync(String)

Retrieves the specified StorageFile from the list.

public:
 virtual IAsyncOperation<StorageFile ^> ^ GetFileAsync(Platform::String ^ token) = 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

The token of the StorageFile to retrieve.

Returns

IAsyncOperation<StorageFile>

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

Implements

<xref href="Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(System.String)?alt=Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(System.String)&text=GetFileAsync(String)" data-throw-if-not-resolved="True"/>
Attributes

See also

GetFileAsync(String, AccessCacheOptions)

Retrieves the StorageFile from the list using the specified options.

public:
 virtual IAsyncOperation<StorageFile ^> ^ GetFileAsync(Platform::String ^ token, AccessCacheOptions options) = GetFileAsync;
IAsyncOperation<StorageFile> GetFileAsync(winrt::hstring const & token, AccessCacheOptions 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

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

IAsyncOperation<StorageFile>

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

Implements

<xref href="Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(System.String,Windows.Storage.AccessCache.AccessCacheOptions)?alt=Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(System.String,Windows.Storage.AccessCache.AccessCacheOptions)&text=GetFileAsync(String%2C+AccessCacheOptions)" data-throw-if-not-resolved="True"/>
Attributes

See also

Applies to