Vcl.JumpList.TCustomJumpList.RemoveFromRecent

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

class function RemoveFromRecent(const Path: string; const AppModelID: string): Boolean; overload;
class function RemoveFromRecent(const ShellItem: IUnknown; const AppModelID: string): Boolean; overload;
class function RemoveFromRecent(const JumpItem: TJumpListItem; const AppModelID: string): Boolean; overload;

C++

__classmethod bool __fastcall RemoveFromRecent(const System::UnicodeString Path, const System::UnicodeString AppModelID)/* overload */;
__classmethod bool __fastcall RemoveFromRecent(const System::_di_IInterface ShellItem, const System::UnicodeString AppModelID)/* overload */;
__classmethod bool __fastcall RemoveFromRecent(TJumpListItem* const JumpItem, const System::UnicodeString AppModelID)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
Vcl.JumpList.pas
Vcl.JumpList.hpp
Vcl.JumpList TCustomJumpList


Description

Retire le fichier spécifié de la liste des fichiers ayant été utilisés récemment par votre application et de la liste des fichiers utilisés fréquemment par l'application.

Le fichier cible peut être spécifié sous l'une des formes suivantes :

  • Une chaîne contenant un chemin d'accès à un fichier. Par exemple : "C:\Users\User\Documents\MyDocument.txt".
  • Une instance de TJumpListItem.
  • Une instance d'une classe qui implémente l'une des interfaces suivantes : IShellLink, IShellItem.

Exceptions

RemoveFromRecent appelle GetAsIShellLink sur JumpItem. GetAsIShellLink peut déclencher certaines exceptions.

Voir aussi