Share via


StorageItemContentProperties.RetrievePropertiesAsync Metodo

Definizione

Recupera le proprietà specificate associate all'elemento.

public:
 virtual IAsyncOperation<IMap<Platform::String ^, Platform::Object ^> ^> ^ RetrievePropertiesAsync(IIterable<Platform::String ^> ^ propertiesToRetrieve) = RetrievePropertiesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IMap<winrt::hstring, IInspectable const&>> RetrievePropertiesAsync(IIterable<winrt::hstring> const& propertiesToRetrieve);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IDictionary<string,object>> RetrievePropertiesAsync(IEnumerable<string> propertiesToRetrieve);
function retrievePropertiesAsync(propertiesToRetrieve)
Public Function RetrievePropertiesAsync (propertiesToRetrieve As IEnumerable(Of String)) As IAsyncOperation(Of IDictionary(Of String, Object))

Parametri

propertiesToRetrieve

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Raccolta contenente i nomi delle proprietà da recuperare. L'elenco delle proprietà supportate è disponibile nella pagina Proprietà core.

Restituisce

IAsyncOperation<IMap<String,Object>>

IAsyncOperation<IDictionary<String,Object>>

IAsyncOperation<IMap<Platform::String,Platform::Object>>

IAsyncOperation<IMap<winrt::hstring,IInspectable>>

Al termine di questo metodo, restituisce una raccolta (tipo IMap) contenente le proprietà e i valori specificati come coppie chiave-valore. Il valore restituito delle proprietà può essere Null.

Implementazioni

M:Windows.Storage.FileProperties.IStorageItemExtraProperties.RetrievePropertiesAsync(System.Collections.Generic.IEnumerable{System.String}) M:Windows.Storage.FileProperties.IStorageItemExtraProperties.RetrievePropertiesAsync(System.Collections.Generic.IEnumerable{Platform::String}) M:Windows.Storage.FileProperties.IStorageItemExtraProperties.RetrievePropertiesAsync(System.Collections.Generic.IEnumerable{winrt::hstring})
Attributi

Commenti

Le proprietà Expando possono essere recuperate da RetrievePropertiesAsync. Vedere le osservazioni in SavePropertiesAsync(IIterable(IKeyValuePair)).

Si applica a

Vedi anche