Share via


SemanticTextQuery.FindInProperty(String, String) Method

Definition

Returns segments of a source string that match the SemanticTextQuery object's query over properties.

public:
 virtual IVectorView<TextSegment> ^ FindInProperty(Platform::String ^ propertyContent, Platform::String ^ propertyName) = FindInProperty;
IVectorView<TextSegment> FindInProperty(winrt::hstring const& propertyContent, winrt::hstring const& propertyName);
public IReadOnlyList<TextSegment> FindInProperty(string propertyContent, string propertyName);
function findInProperty(propertyContent, propertyName)
Public Function FindInProperty (propertyContent As String, propertyName As String) As IReadOnlyList(Of TextSegment)

Parameters

propertyContent
String

Platform::String

winrt::hstring

A source string to be queried.

propertyName
String

Platform::String

winrt::hstring

The name of the property.

Returns

A collection of TextSegment structures that represent hits from the query.

Applies to

See also