Share via


CortanaSettings.GetDefault Method

Definition

Retrieves the Cortana settings for the current user.

public:
 static CortanaSettings ^ GetDefault();
 static CortanaSettings GetDefault();
/// [Windows.Foundation.Metadata.Deprecated("ICortanaSettingsStatics is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
 static CortanaSettings GetDefault();
public static CortanaSettings GetDefault();
[Windows.Foundation.Metadata.Deprecated("ICortanaSettingsStatics is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
public static CortanaSettings GetDefault();
function getDefault()
Public Shared Function GetDefault () As CortanaSettings

Returns

A CortanaSettings object.

Attributes

Remarks

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

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

Applies to