StorageItemContentProperties.RetrievePropertiesAsync Methode

Definition

Ruft die angegebenen Eigenschaften ab, die dem Element zugeordnet sind.

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>

Eine Auflistung, die die Namen der abzurufenden Eigenschaften enthält. Die Liste der unterstützten Eigenschaften finden Sie auf der Seite Core-Eigenschaften.

Gibt zurück

IAsyncOperation<IMap<String,Object>>

IAsyncOperation<IDictionary<String,Object>>

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

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

Wenn diese Methode erfolgreich abgeschlossen wurde, wird eine Auflistung (Typ IMap) zurückgegeben, die die angegebenen Eigenschaften und Werte als Schlüssel-Wert-Paare enthält. Der Rückgabewert von Eigenschaften kann NULL sein.

Implementiert

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

Hinweise

Expando-Eigenschaften können von RetrievePropertiesAsync abgerufen werden. Weitere Informationen finden Sie in den Hinweisen unter SavePropertiesAsync(IIterable(IKeyValuePair)).

Gilt für:

Weitere Informationen