SpeechRecognitionCompilationResult 类

定义

编译 SpeechRecognizer 对象的约束集的结果。

public ref class SpeechRecognitionCompilationResult sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SpeechRecognitionCompilationResult final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SpeechRecognitionCompilationResult
Public NotInheritable Class SpeechRecognitionCompilationResult
继承
Object Platform::Object IInspectable SpeechRecognitionCompilationResult
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

调用 SpeechRecognizer.CompileConstraintsAsync 以获取此类的实例。

必须始终在 RecognizeAsyncRecognizeWithUIAsync 之前调用 CompileConstraintsAsync,即使 Constraints 属性中未指定约束也是如此。

属性

Status

从语法约束的编译) 获取 speechRecognitionResultStatus (结果状态。

适用于

另请参阅