Share via


StorageItemAccessList.GetItemAsync Metodo

Definizione

Overload

GetItemAsync(String)

Recupera l'elemento specificato (ad esempio un file o una cartella) dall'elenco MRU (più recente) usato.

GetItemAsync(String, AccessCacheOptions)

Recupera l'elemento specificato (ad esempio un file o una cartella) dall'elenco usando le opzioni specificate.

GetItemAsync(String)

Recupera l'elemento specificato (ad esempio un file o una cartella) dall'elenco MRU (più recente) usato.

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)

Parametri

token
String

Platform::String

winrt::hstring

Token dell'elemento da recuperare.

Restituisce

Al termine di questo metodo, restituisce l'elemento (tipo IStorageItem) associato al token specificato.

Implementazioni

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

Vedi anche

Si applica a

GetItemAsync(String, AccessCacheOptions)

Recupera l'elemento specificato (ad esempio un file o una cartella) dall'elenco usando le opzioni specificate.

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)

Parametri

token
String

Platform::String

winrt::hstring

Token dell'elemento da recuperare.

options
AccessCacheOptions

Valore enumerazione che descrive il comportamento da usare quando l'app accede all'elemento.

Restituisce

Al termine di questo metodo, restituisce l'elemento (tipo IStorageItem) associato al token specificato.

Implementazioni

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)
Attributi

Vedi anche

Si applica a