Dela via


IStorageItemAccessList.GetItemAsync Method

Definition

Overloads

GetItemAsync(String)

Retrieves the specified item (like a file or folder) from the 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 list.

public:
 IAsyncOperation<IStorageItem ^> ^ GetItemAsync(Platform::String ^ token);
/// [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.

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:
 IAsyncOperation<IStorageItem ^> ^ GetItemAsync(Platform::String ^ token, AccessCacheOptions options);
/// [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.

Attributes

See also

Applies to