Bagikan melalui


StorageItemContentProperties.RetrievePropertiesAsync Metode

Definisi

Mengambil properti yang ditentukan yang terkait dengan item.

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

Parameter

propertiesToRetrieve

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Koleksi yang berisi nama properti yang akan diambil. Daftar properti yang didukung dapat ditemukan di halaman Properti inti.

Mengembalikan

IAsyncOperation<IMap<String,Object>>

IAsyncOperation<IDictionary<String,Object>>

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

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

Ketika metode ini berhasil diselesaikan, metode ini mengembalikan koleksi (jenis IMap) yang berisi properti dan nilai yang ditentukan sebagai pasangan kunci-nilai. Nilai properti yang dikembalikan bisa null.

Penerapan

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})
Atribut

Keterangan

Properti Expando dapat diambil oleh RetrievePropertiesAsync. Lihat keterangan di bawah SavePropertiesAsync(IIterable(IKeyValuePair)).

Berlaku untuk

Lihat juga