EnumerateCachedFiles Method
Enumerates the files in the cache.
Syntax
Remarks
This method initiates a enumeration operation for cached files that match the specified EnunmerationMode, which must be one of the following values:
ENUM_MODE_ALL | 0 | Enumerate all files. |
ENUM_MODE_CHANGED | 1 | Enumerate files with changed blocks. |
ENUM_MODE_UNCHANGED | 2 | Enumerate files with no changed blocks. |
ENUM_MODE_LOCAL | 3 | Enumerate local files.
Refer to the Local Files topic for more information. |
ENUM_MODE_ORPHAN | 4 | Enumerate orphan files.
Refer to the Orphan Files topic for more information. |
This method returns a handle that can be passed to the GetNextEnumeratedFile method to retrieve the results of the enumeration. If no matching files are found, -1 is returned instead.
When an application is finished enumerating files, it must call the CloseEnumeration method in order to release the associated resources.
.NET Standard Notes
To call this method in an asynchronous manner call EnumerateCachedFilesAsync instead. When the method completes (or an error is encountered) the EnumerateCachedFilesCompleted event will fire.