Vcl.JumpList.TCustomJumpList.RemoveFromRecent

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
Vcl.JumpList.pas
Vcl.JumpList.hpp
Vcl.JumpList TCustomJumpList


Beschreibung

Entfernt die angegebene Datei aus der Liste der Dateien, die Ihre Anwendung kürzlich verwendet hat, und aus der Liste der Dateien, die Ihre Anwendung häufig verwendet hat.

Sie haben verschiedene Möglichkeiten, die Zieldatei festzulegen:

  • Als String, der einen Dateipfad enthält. Beispiel: "C:\Users\User\Documents\MyDocument.txt".
  • Eine Instanz von TJumpListItem.
  • Eine Instanz einer Klasse, die eines der folgenden Interfaces implementiert: IShellLink, IShellItem.

Exceptions

RemoveFromRecent ruft GetAsIShellLink für JumpItem auf. GetAsIShellLink kann einige Exceptions auslösen.

Siehe auch