Compartilhar via


CortanaSettings Classe

Definição

Fornece acesso às configurações da 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
Herança
Object Platform::Object IInspectable CortanaSettings
Atributos

Requisitos do Windows

Família de dispositivos
Windows IoT Extension SDK (introduzida na 10.0.15063.0)
API contract
Windows.System.SystemManagementContract (introduzida na v3.0)

Comentários

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

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

Propriedades

HasUserConsentToVoiceActivation

Obtém se o usuário consentiu com a ativação de voz.

IsVoiceActivationEnabled

Obtém ou define se a ativação de voz está habilitada.

Métodos

GetDefault()

Recupera as configurações da Cortana para o usuário atual.

IsSupported()

Recupera se há suporte para as configurações da Cortana.

Aplica-se a