SemanticTextQuery SemanticTextQuery SemanticTextQuery SemanticTextQuery Class

Definition

Permits apps to perform text queries using Advanced Query Syntax (AQS) strings, with the option of providing a language tag to be employed in the query.

public : sealed class SemanticTextQuery : ISemanticTextQuerypublic sealed class SemanticTextQuery : ISemanticTextQueryPublic NotInheritable Class SemanticTextQuery Implements ISemanticTextQuery// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

SemanticTextQuery(String) SemanticTextQuery(String) SemanticTextQuery(String) SemanticTextQuery(String)

Creates a SemanticTextQuery from an Advanced Query Syntax (AQS) query string.

public : SemanticTextQuery(PlatForm::String aqsFilter)public SemanticTextQuery(String aqsFilter)Public Sub New(aqsFilter As String)// You can use this method in JavaScript.
Parameters
aqsFilter
PlatForm::String String String String

An Advanced Query Syntax (AQS) string that contains the desired query. Learn more about AQS in Advanced Query Syntax (AQS).

See Also

SemanticTextQuery(String, String) SemanticTextQuery(String, String) SemanticTextQuery(String, String) SemanticTextQuery(String, String)

Creates a SemanticTextQuery from an Advanced Query Syntax (AQS) query string and a language tag.

public : SemanticTextQuery(PlatForm::String aqsFilter, PlatForm::String filterLanguage)public SemanticTextQuery(String aqsFilter, String filterLanguage)Public Sub New(aqsFilter As String, filterLanguage As String)// You can use this method in JavaScript.
Parameters
aqsFilter
PlatForm::String String String String

An Advanced Query Syntax (AQS) string that contains the desired query. Learn more about Advanced Query Syntax (AQS) in .

filterLanguage
PlatForm::String String String String

The BCP-47 language tag to be employed in the query.

To see a list of the language tags specifically supported by the Windows Store, see Choosing your languages.

Remarks

filterLanguage permits queries to work with language differences. For example, if aqsFilter is "19,5" and filterLanguage is "pl" (Polish), a call to Find against text that includes "19.5" returns a text segment because it is understood that the comma is the decimal separator in Polish.

See Also

Methods

Find(String) Find(String) Find(String) Find(String)

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

public : IVectorView<TextSegment> Find(PlatForm::String content)public IReadOnlyList<TextSegment> Find(String content)Public Function Find(content As String) As IReadOnlyList( Of TextSegment )// You can use this method in JavaScript.
Parameters
content
PlatForm::String String String String

A source string to be queried.

Returns
IVectorView<TextSegment> IReadOnlyList<TextSegment> IReadOnlyList<TextSegment> IReadOnlyList<TextSegment>

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

See Also

FindInProperty(String, String) FindInProperty(String, String) FindInProperty(String, String) FindInProperty(String, String)

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

public : IVectorView<TextSegment> FindInProperty(PlatForm::String propertyContent, PlatForm::String propertyName)public IReadOnlyList<TextSegment> FindInProperty(String propertyContent, String propertyName)Public Function FindInProperty(propertyContent As String, propertyName As String) As IReadOnlyList( Of TextSegment )// You can use this method in JavaScript.
Parameters
propertyContent
PlatForm::String String String String

A source string to be queried.

propertyName
PlatForm::String String String String

The name of the property.

Returns
IVectorView<TextSegment> IReadOnlyList<TextSegment> IReadOnlyList<TextSegment> IReadOnlyList<TextSegment>

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

See Also

See Also