ShellBrowser Delphi Components Documentation
|
Determines if enumerating the folder asynchronously (using the notification system) is appropriate.
class function ShouldEnumerateAsync(const pFolderIdList: IItemIdList; pCancellationToken: ICancellationIndicator): boolean;
Parameters |
Description |
const pFolderIdList: IItemIdList |
The folder's ItemIdlist to check. |
pCancellationToken: ICancellationIndicator |
A cancellation token to cancel the operation. |
boolean: True, if the folder might cause delays. False if it can be enumerated quickly.
The method takes into account the IItemIdList.IsSlow result. For folders that return true, it additionally checks, if this is currently true. This should avoid as much as possible overhead that is caused by enumeration via notifications.