StorageFileQueryResult.GetMatchingPropertiesWithRanges(StorageFile) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets matching file properties with corresponding text ranges.
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))
Parameters
- file
- StorageFile
The file to query for properties.
Returns
The matched properties and corresponding text ranges.
Remarks
Use this method to implement hit highlighting in your app's query results.