Vcl.JumpList.TCustomJumpList.RemoveFromRecent

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

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

Description

Removes the specified file from the list of files that your application has used recently and from the list of files that your application has used often.

You can specify the target file as any of the following:

  • A string containing a file path. For example: "C:\Users\User\Documents\MyDocument.txt".
  • An instance of TJumpListItem.
  • An instance of a class that implements either of the following interfaces: IShellLink, IShellItem.

Exceptions

RemoveFromRecent calls GetAsIShellLink on JumpItem. GetAsIShellLink may raise some exceptions.

See Also