Share via


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 イベントまたは Extensible Application Markup Language (XAML) OnActivated メソッドのいずれかをオーバーライドします。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1607 14393 ユーザー

プロパティ

Kind

アクティブ化の種類を取得します。

PreviousExecutionState

アクティブ化される前のアプリの実行状態を取得します。

Result

アプリをアクティブ化した音声コマンドを表す SpeechRecognitionResult オブジェクトを取得します。

SplashScreen

スプラッシュ 画面からアクティブ化されたアプリへの切り替えに関する情報を取得します。

User

アプリがアクティブ化されたユーザーを取得します。

適用対象

こちらもご覧ください