CortanaSettings.IsVoiceActivationEnabled Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit si l’activation vocale est activée.
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
Valeur de propriété
Boolean
bool
true si l’activation vocale est activée. Dans le cas contraire, la valeur est false.
- Attributs
Remarques
La classe CortanaSettings nécessite l’ajout des éléments suivants au package.appmanifest :
- À <empaqueter>
IgnorableNamespaces="iot"
- Sous <Fonctionnalités>
<iot:Capability Name="systemManagement"/>