SearchOption Enumeration
.NET Framework (current version)
Specifies whether to search the current directory, or the current directory and all subdirectories.
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| AllDirectories | Includes the current directory and all its subdirectories in a search operation. This option includes reparse points such as mounted drives and symbolic links in the search. | |
| TopDirectoryOnly | Includes only the current directory in a search operation. |
If you choose AllDirectories in your search and the directory structure contains a link that creates a loop, the search operation enters an infinite loop.
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 4.0
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 4.0
Show: