Vcl.JumpList.TCustomJumpList.RemoveFromRecent
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 */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.JumpList.pas Vcl.JumpList.hpp |
Vcl.JumpList | TCustomJumpList |
説明
アプリケーションが最近使用したファイルのリスト、および、アプリケーションが頻繁に使用したファイルのリストから、指定されたファイルを削除します。
ターゲット ファイルは、次のいずれかの方法で指定できます:
- ファイル パスを含む文字列。例: "C:\Users\User\Documents\MyDocument.txt"
- TJumpListItem のインスタンス
- 次のインターフェイスのいずれかを実装するクラスのインスタンス: IShellLink、IShellItem
例外
RemoveFromRecent は、JumpItem
に対して GetAsIShellLink を呼び出します。GetAsIShellLink は、なんらかの例外を発生させる可能性があります。