VoiceCommandActivatedEventArgs 类

定义

包含通过语音命令启动应用时应用激活事件的信息。

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

Windows 要求

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

注解

IActivatedEventArgs.Kind 的值为 VoiceCommand 时,通过重写 Windows JavaScript 库 (WinJS) onactivated 事件或可扩展应用程序标记语言 (XAML) OnActivated 方法访问此对象。

版本历史记录

Windows 版本 SDK 版本 增值
1607 14393 用户

属性

Kind

获取激活类型。

PreviousExecutionState

获取激活前的应用的执行状态。

Result

获取 SpeechRecognitionResult 对象,该对象表示激活应用的语音命令。

SplashScreen

获取有关从初始屏幕过渡到激活的应用的信息。

User

获取为其激活应用的用户。

适用于

另请参阅