StorageItemContentProperties.RetrievePropertiesAsync(IEnumerable<String>) Method

Definition

Retrieves the specified properties associated with the item.

public:
 virtual IAsyncOperation<IMap<Platform::String ^, Platform::Object ^> ^> ^ RetrievePropertiesAsync(IIterable<Platform::String ^> ^ propertiesToRetrieve) = RetrievePropertiesAsync;
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))

Parameters

propertiesToRetrieve
IEnumerable<String>

A collection that contains the names of the properties to retrieve. The list of supported properties can be found on the Core properties page.

Returns

IAsyncOperation<IDictionary<String,Object>>

When this method completes successfully, it returns a collection (type IMap ) that contains the specified properties and values as key-value pairs. The return value of properties can be null.

Implements

Windows.Storage.FileProperties.IStorageItemExtraProperties.RetrievePropertiesAsync(System.Collections.Generic.IEnumerable{System.String})
Attributes

Remarks

Expando properties can be retrieved by RetrievePropertiesAsync. See the remarks under SavePropertiesAsync(IIterable(IKeyValuePair)).

Applies to

See also