Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SemanticTextQuery Class

Definition

Namespace:
Windows.Data.Text

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.

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

Requirements Description
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

Name Description
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

Name Description
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


Feedback

Was this page helpful?