Share via


StorageItemAccessList.GetItemAsync Method

Definition

Overloads

GetItemAsync(String)

Retrieves the specified item (like a file or folder) from the most recently used (MRU) list.

GetItemAsync(String, AccessCacheOptions)

Retrieves the specified item (like a file or folder) from the list using the specified options.

GetItemAsync(String)

Retrieves the specified item (like a file or folder) from the most recently used (MRU) list.

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

Parameters

token
String

Platform::String

winrt::hstring

The token of the item to retrieve.

Returns

When this method completes successfully, it returns the item (type IStorageItem) that is associated with the specified token.

Implements

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

See also

Applies to

GetItemAsync(String, AccessCacheOptions)

Retrieves the specified item (like a file or folder) from the list using the specified options.

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

Parameters

token
String

Platform::String

winrt::hstring

The token of the item 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 item (type IStorageItem) that is associated with the specified token.

Implements

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

See also

Applies to