Partager via


CortanaSettings.HasUserConsentToVoiceActivation Propriété

Définition

Obtient si l’utilisateur a consenti à l’activation vocale.

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

Valeur de propriété

Boolean

bool

true si l’utilisateur a donné son consentement. Dans le cas contraire, la valeur est false.

Attributs

Remarques

La classe CortanaSettings nécessite l’ajout des éléments suivants au package.appmanifest :

  • Vers <le package>
    • IgnorableNamespaces="iot"
  • Sous <Fonctionnalités>
    • <iot:Capability Name="systemManagement"/>

S’applique à