Share via


CortanaPermissionsManager.GetDefault Method

Definition

Retrieves the Cortana permissions for the current user.

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

Returns

Attributes

Windows requirements

App capabilities
cortanaPermissions

Remarks

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

  • To <Package>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Under <Capabilities>
    • <rescap:capability name="cortanaPermissions"/>

Applies to