Share via


CortanaSettings Class

Definition

Provides access to Cortana settings.

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
Inheritance
Object Platform::Object IInspectable CortanaSettings
Attributes

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.System.SystemManagementContract (introduced in v3.0)

Remarks

The CortanaSettings class requires the following be added to the Package.appmanifest:

  • To <Package>
    • IgnorableNamespaces="iot"
  • Under <Capabilities>
    • <iot:Capability Name="systemManagement"/>

Properties

HasUserConsentToVoiceActivation

Gets whether the user has consented to voice activation.

IsVoiceActivationEnabled

Gets or sets whether voice activation is enabled.

Methods

GetDefault()

Retrieves the Cortana settings for the current user.

IsSupported()

Retrieves whether Cortana settings are supported.

Applies to