SemanticTextQuery 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许应用使用高级查询语法 (AQS) 字符串执行文本查询,并提供要在查询中使用的语言标记的选项。
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
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
构造函数
SemanticTextQuery(String) |
从高级查询语法 (AQS) 查询字符串创建 SemanticTextQuery 。 |
SemanticTextQuery(String, String) |
从高级查询语法 (AQS) 查询字符串和语言标记创建 SemanticTextQuery 。 |
方法
Find(String) |
返回与 SemanticTextQuery 对象的查询匹配的源字符串段。 |
FindInProperty(String, String) |
返回与 SemanticTextQuery 对象对属性的查询匹配的源字符串段。 |