VideoProperties.RetrievePropertiesAsync(IIterable<String>) Метод

Определение

Извлекает указанные свойства, связанные с элементом.

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

Параметры

propertiesToRetrieve

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Коллекция, содержащая имена извлекаемых свойств.

Возвращаемое значение

IAsyncOperation<IMap<String,Object>>

IAsyncOperation<IDictionary<String,Object>>

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

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

После успешного завершения этого метода возвращается коллекция (тип IMap), содержащая указанные свойства и значения в виде пар "ключ-значение".

Реализации

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})
Атрибуты

Комментарии

В JavaScript используйте параметр then или done , чтобы указать функции обработчика, которые будут захватывать и обрабатывать коллекцию при ее возвращении.

Применяется к

См. также раздел