Share via


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 ref class SemanticTextQuery sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ISemanticTextQueryFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SemanticTextQuery final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ISemanticTextQueryFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class SemanticTextQuery final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ISemanticTextQueryFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SemanticTextQuery
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ISemanticTextQueryFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SemanticTextQuery
function SemanticTextQuery(aqsFilter, filterLanguage)
Public NotInheritable Class SemanticTextQuery
Inheritance
Object Platform::Object IInspectable SemanticTextQuery
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

SemanticTextQuery(String, String)

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

SemanticTextQuery(String)

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

Methods

Find(String)

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

FindInProperty(String, String)

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

Applies to

See also