StorageItemAccessList.GetItemAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- Attributes