Compartilhar via


CortanaPermissionsManager.RevokePermissionsAsync Método

Definição

Revoga de forma assíncrona o conjunto especificado de permissões da Cortana.

public:
 virtual IAsyncOperation<CortanaPermissionsChangeResult> ^ RevokePermissionsAsync(IIterable<CortanaPermission> ^ permissions) = RevokePermissionsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<CortanaPermissionsChangeResult> RevokePermissionsAsync(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<CortanaPermissionsChangeResult> RevokePermissionsAsync(IIterable<CortanaPermission> const& permissions);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<CortanaPermissionsChangeResult> RevokePermissionsAsync(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<CortanaPermissionsChangeResult> RevokePermissionsAsync(IEnumerable<CortanaPermission> permissions);
function revokePermissionsAsync(permissions)
Public Function RevokePermissionsAsync (permissions As IEnumerable(Of CortanaPermission)) As IAsyncOperation(Of CortanaPermissionsChangeResult)

Parâmetros

permissions

IIterable<CortanaPermission>

IEnumerable<CortanaPermission>

A coleção de permissões a serem revogadas.

Retornos

O resultado da operação de permissão.

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
cortanaPermissions

Comentários

A classe CortanaPermissionManager requer que o seguinte seja adicionado ao Package.appmanifest:

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

Aplica-se a

Confira também