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 IInspectable VoiceCommandActivatedEventArgs
属性
实现

Windows 要求

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

注解

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

版本历史记录

Windows 版本 SDK 版本 已添加值
1607 14393 User

属性

Kind

获取激活类型。

PreviousExecutionState

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

Result

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

SplashScreen

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

User

获取激活应用的用户。

适用于

另请参阅