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;
/// [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 StorageFile from the 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