Compartir a través de


CortanaSettings.HasUserConsentToVoiceActivation Propiedad

Definición

Obtiene si el usuario ha consentido la activación por voz.

public:
 property bool HasUserConsentToVoiceActivation { bool get(); };
bool HasUserConsentToVoiceActivation();
/// [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")]
bool HasUserConsentToVoiceActivation();
public bool HasUserConsentToVoiceActivation { get; }
public bool HasUserConsentToVoiceActivation { [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; }
var boolean = cortanaSettings.hasUserConsentToVoiceActivation;
Public ReadOnly Property HasUserConsentToVoiceActivation As Boolean

Valor de propiedad

Boolean

bool

True si el usuario ha consentido. 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