ContentIndexer.RetrievePropertiesAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據指定的內容識別碼取得內容屬性。
public:
virtual IAsyncOperation<IMapView<Platform::String ^, Platform::Object ^> ^> ^ RetrievePropertiesAsync(Platform::String ^ contentId, IIterable<Platform::String ^> ^ propertiesToRetrieve) = RetrievePropertiesAsync;
IAsyncOperation<IMapView<winrt::hstring, IInspectable const&>> RetrievePropertiesAsync(winrt::hstring const& contentId, IIterable<winrt::hstring> const& propertiesToRetrieve);
public IAsyncOperation<IReadOnlyDictionary<string,object>> RetrievePropertiesAsync(string contentId, IEnumerable<string> propertiesToRetrieve);
function retrievePropertiesAsync(contentId, propertiesToRetrieve)
Public Function RetrievePropertiesAsync (contentId As String, propertiesToRetrieve As IEnumerable(Of String)) As IAsyncOperation(Of IReadOnlyDictionary(Of String, Object))
參數
- contentId
-
String
Platform::String
winrt::hstring
內容屬性的識別碼。
傳回
IAsyncOperation<IMapView<Platform::String,Platform::Object>>
IAsyncOperation<IMapView<winrt::hstring,IInspectable>>
當這個方法完成時,它會傳回擷取的屬性做為索引鍵/值組的對應。