Поделиться через


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"/>

Применяется к