共用方式為


StorageFileQueryResult.GetMatchingPropertiesWithRanges(StorageFile) 方法

定義

取得與對應文字範圍的相符檔案屬性。

public:
 virtual IMap<Platform::String ^, IVectorView<TextSegment> ^> ^ GetMatchingPropertiesWithRanges(StorageFile ^ file) = GetMatchingPropertiesWithRanges;
IMap<winrt::hstring, IVectorView<TextSegment> const&> GetMatchingPropertiesWithRanges(StorageFile const& file);
public IDictionary<string,IReadOnlyList<TextSegment>> GetMatchingPropertiesWithRanges(StorageFile file);
function getMatchingPropertiesWithRanges(file)
Public Function GetMatchingPropertiesWithRanges (file As StorageFile) As IDictionary(Of String, IReadOnlyList(Of TextSegment))

參數

file
StorageFile

要查詢屬性的檔案。

傳回

相符的屬性和對應的文字範圍。

備註

使用這個方法,在應用程式的查詢結果中實作點擊醒目提示。

適用於