Partager via


CortanaSettings Classe

Définition

Fournit l’accès aux paramètres de Cortana.

public ref class CortanaSettings sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.SystemManagementContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CortanaSettings final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.SystemManagementContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Deprecated("CortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
class CortanaSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.SystemManagementContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CortanaSettings
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.SystemManagementContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Deprecated("CortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
public sealed class CortanaSettings
Public NotInheritable Class CortanaSettings
Héritage
Object Platform::Object IInspectable CortanaSettings
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows IoT Extension SDK (introduit dans 10.0.15063.0)
API contract
Windows.System.SystemManagementContract (introduit dans v3.0)

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"/>

Propriétés

HasUserConsentToVoiceActivation

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

IsVoiceActivationEnabled

Obtient ou définit si l’activation vocale est activée.

Méthodes

GetDefault()

Récupère les paramètres Cortana pour l’utilisateur actuel.

IsSupported()

Récupère si les paramètres Cortana sont pris en charge.

S’applique à