Compartir a través de


CortanaSettings Clase

Definición

Proporciona acceso a la configuración 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
Herencia
Object Platform::Object IInspectable CortanaSettings
Atributos

Requisitos de Windows

Familia de dispositivos
Windows IoT Extension SDK (se introdujo en la versión 10.0.15063.0)
API contract
Windows.System.SystemManagementContract (se introdujo en la versión v3.0)

Comentarios

La clase CortanaSettings requiere que se agregue lo siguiente a Package.appmanifest:

  • Para empaquetar <>
    • IgnorableNamespaces="iot"
  • En <Funcionalidades>
    • <iot:Capability Name="systemManagement"/>

Propiedades

HasUserConsentToVoiceActivation

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

IsVoiceActivationEnabled

Obtiene o establece si la activación por voz está habilitada.

Métodos

GetDefault()

Recupera la configuración de Cortana para el usuario actual.

IsSupported()

Recupera si se admite la configuración de Cortana.

Se aplica a