Click or drag to resize

Win32FindDataEnumerateFileSystemEntries Method (String, Win32FindDataEnumerateOptions, Boolean)

Returns an enumerable collection of file names and directory names in a specified path.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static IEnumerable<Win32FindData> EnumerateFileSystemEntries(
	string directoryPath,
	Win32FindDataEnumerateOptions options = Win32FindDataEnumerateOptions.None,
	bool throwOnError = false
)

Parameters

directoryPath
Type: SystemString
The relative or absolute path to the directory to search. This string is not case-sensitive.
options (Optional)
Type: ShellBoost.Core.UtilitiesWin32FindDataEnumerateOptions
The options.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be thrown; otherwise skip errors and continue.

Return Value

Type: IEnumerableWin32FindData
An enumerable collection of file-system entries in the specified path.
Exceptions
ExceptionCondition
ArgumentNullExceptiondirectoryPath is null.
See Also