Compartir a través de


CortanaPermissionsManager.ArePermissionsGrantedAsync Método

Definición

Recupera de forma asincrónica si se conceden los permisos especificados.

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)

Parámetros

permissions

IIterable<CortanaPermission>

IEnumerable<CortanaPermission>

Colección de permisos de interés.

Devoluciones

True si se concede el permiso. De lo contrario, se devuelve el valor False.

Atributos

Requisitos de Windows

Características de aplicaciones
cortanaPermissions

Comentarios

La clase CortanaPermissionManager requiere que se agregue lo siguiente a Package.appmanifest:

  • Para empaquetar <>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • En <Funcionalidades>
    • <rescap:capability name="cortanaPermissions"/>

Se aplica a

Consulte también