SearchMatch.GetPropertyPath

Syntax

SearchMatch.GetPropertyPath( useNamesForIndices)

Return Value

String

Purpose

Call this method to obtain the lookup string that indicates the location of the property that contains the match.

Remarks

If the match is from a SearchResults object that the Engine.SearchFiles method returns and the SearchMatch.TypeCategoryOfMatch property is TypeCategory_None , the SearchMatch.GetPropertyPath method returns a lookup string relative to the PropertyObjectFile.Data property. Prepend Data. to use this lookup string relative to the root of the PropertyObjectFile object.

Parameters

useNamesForIndices As Boolean

[In] Pass True to obtain a property path that uses property names for array indexes when possible. The name of an object element in an array is not guaranteed to be unique within the array. If you pass True for this parameter, do not use the returned property path with methods that have a lookupString parameter, such as the PropertyObject.GetPropertyObject method and the PropertyObject.Exists method.

See Also

Engine.SearchFiles

PropertyObject.Exists

PropertyObject.GetPropertyObject

SearchMatch.TypeCategoryOfMatch

SearchResults