Condividi tramite


CortanaPermissionsManager.ArePermissionsGrantedAsync Metodo

Definizione

Ritreive in modo asincrono se vengono concesse le autorizzazioni specificate.

public:
 virtual IAsyncOperation<bool> ^ ArePermissionsGrantedAsync(IIterable<CortanaPermission> ^ permissions) = ArePermissionsGrantedAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ArePermissionsGrantedAsync(IIterable<CortanaPermission> const& permissions);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("ICortanaPermissionsManager is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<bool> ArePermissionsGrantedAsync(IIterable<CortanaPermission> const& permissions);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ArePermissionsGrantedAsync(IEnumerable<CortanaPermission> permissions);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("ICortanaPermissionsManager is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<bool> ArePermissionsGrantedAsync(IEnumerable<CortanaPermission> permissions);
function arePermissionsGrantedAsync(permissions)
Public Function ArePermissionsGrantedAsync (permissions As IEnumerable(Of CortanaPermission)) As IAsyncOperation(Of Boolean)

Parametri

permissions

IIterable<CortanaPermission>

IEnumerable<CortanaPermission>

Raccolta di autorizzazioni di interesse.

Restituisce

true se viene concessa l'autorizzazione. In caso contrario, false.

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

Vedi anche