次の方法で共有


CortanaSettings.IsVoiceActivationEnabled プロパティ

定義

音声アクティブ化が有効かどうかを取得または設定します。

public:
 property bool IsVoiceActivationEnabled { bool get(); void set(bool value); };
bool IsVoiceActivationEnabled();

void IsVoiceActivationEnabled(bool value);
/// [get: Windows.Foundation.Metadata.Deprecated("ICortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("ICortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
bool IsVoiceActivationEnabled();

void IsVoiceActivationEnabled(bool value);
public bool IsVoiceActivationEnabled { get; set; }
public bool IsVoiceActivationEnabled { [Windows.Foundation.Metadata.Deprecated("ICortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")] get; [Windows.Foundation.Metadata.Deprecated("ICortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")] set; }
var boolean = cortanaSettings.isVoiceActivationEnabled;
cortanaSettings.isVoiceActivationEnabled = boolean;
Public Property IsVoiceActivationEnabled As Boolean

プロパティ値

Boolean

bool

音声 アクティブ化が有効になっている場合は true。 それ以外の場合は、 falseです。

属性

注釈

CortanaSettings クラスを Package.appmanifest に追加するには、次のものが必要です。

  • パッケージ化<>
    • IgnorableNamespaces="iot"
  • [機能]<>
    • <iot:Capability Name="systemManagement"/>

適用対象