Condividi tramite


CortanaPermissionsManager.GetDefault Metodo

Definizione

Recupera le autorizzazioni Cortana per l'utente corrente.

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

Restituisce

Attributi

Requisiti Windows

Funzionalità dell'app
cortanaPermissions

Commenti

La classe CortanaPermissionManager richiede l'aggiunta seguente al Package.appmanifest:

  • Per <il pacchetto>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • In <Funzionalità>
    • <rescap:capability name="cortanaPermissions"/>

Si applica a