共用方式為


ContentIndexerQuery.GetPropertiesAsync 方法

定義

多載

GetPropertiesAsync()

擷取應用程式的屬性集集合,其中屬性集是索引鍵/值組。

GetPropertiesAsync(UInt32, UInt32)

在應用程式的索引內容屬性上執行查詢,並從結果集合中指定的開始索引傳回指定的屬性數目。

GetPropertiesAsync()

擷取應用程式的屬性集集合,其中屬性集是索引鍵/值組。

public:
 virtual IAsyncOperation<IVectorView<IMapView<Platform::String ^, Platform::Object ^> ^> ^> ^ GetPropertiesAsync() = GetPropertiesAsync;
/// [Windows.Foundation.Metadata.Overload("GetPropertiesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<IMapView<winrt::hstring, IInspectable const&>>> GetPropertiesAsync();
[Windows.Foundation.Metadata.Overload("GetPropertiesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<IReadOnlyDictionary<string,object>>> GetPropertiesAsync();
function getPropertiesAsync()
Public Function GetPropertiesAsync () As IAsyncOperation(Of IReadOnlyList(Of IReadOnlyDictionary(Of String, Object)))

傳回

當這個方法完成時,它會將查詢結果當做 PropertyValue 實例的集合傳回。

屬性

另請參閱

適用於

GetPropertiesAsync(UInt32, UInt32)

在應用程式的索引內容屬性上執行查詢,並從結果集合中指定的開始索引傳回指定的屬性數目。

public:
 virtual IAsyncOperation<IVectorView<IMapView<Platform::String ^, Platform::Object ^> ^> ^> ^ GetPropertiesAsync(unsigned int startIndex, unsigned int maxItems) = GetPropertiesAsync;
/// [Windows.Foundation.Metadata.Overload("GetPropertiesRangeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<IMapView<winrt::hstring, IInspectable const&>>> GetPropertiesAsync(uint32_t const& startIndex, uint32_t const& maxItems);
[Windows.Foundation.Metadata.Overload("GetPropertiesRangeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<IReadOnlyDictionary<string,object>>> GetPropertiesAsync(uint startIndex, uint maxItems);
function getPropertiesAsync(startIndex, maxItems)
Public Function GetPropertiesAsync (startIndex As UInteger, maxItems As UInteger) As IAsyncOperation(Of IReadOnlyList(Of IReadOnlyDictionary(Of String, Object)))

參數

startIndex
UInt32

unsigned int

uint32_t

要從結果集合中取得之第一個專案的索引。

maxItems
UInt32

unsigned int

uint32_t

要取得的專案數目上限。

傳回

當這個方法完成時,它會將查詢結果當做 PropertyValue 實例的集合傳回。

屬性

備註

指定 startIndexmaxItems 對於搜尋結果的虛擬化或編頁存取很有用。

另請參閱

適用於