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 Library for JavaScript (WinJS) onactivated事件或可延伸的應用程式標記語言 (XAML) OnActivated方法,即可存取此物件。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1607 14393 User

屬性

Kind

取得啟用類型。

PreviousExecutionState

取得應用程式啟動前的執行狀態。

Result

取得 SpeechRecognitionResult 物件,代表啟動應用程式的語音命令。

SplashScreen

取得從啟動顯示畫面轉換為啟動應用程式的相關資訊。

User

取得啟動應用程式的使用者。

適用於

另請參閱