Compartir a través de


CortanaSettings.IsVoiceActivationEnabled Propiedad

Definición

Obtiene o establece si la activación por voz está habilitada.

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

Valor de propiedad

Boolean

bool

True si la activación por voz está habilitada. De lo contrario, se devuelve el valor False.

Atributos

Comentarios

La clase CortanaSettings requiere que se agregue lo siguiente a Package.appmanifest:

  • Para empaquetar <>
    • IgnorableNamespaces="iot"
  • En <Funcionalidades>
    • <iot:Capability Name="systemManagement"/>

Se aplica a