Compartilhar via


CortanaSettings.HasUserConsentToVoiceActivation Propriedade

Definição

Obtém se o usuário consentiu com a ativação de 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 da propriedade

Boolean

bool

true se o usuário tiver consentido. Caso contrário, false.

Atributos

Comentários

A classe CortanaSettings requer que o seguinte seja adicionado ao Package.appmanifest:

  • Para Empacotar <>
    • IgnorableNamespaces="iot"
  • Em <Recursos>
    • <iot:Capability Name="systemManagement"/>

Aplica-se a