SearchOption Enumeration

SearchOption Enumeration


Specifies whether to search all or only top-level directories.

Namespace:   Microsoft.VisualBasic.FileIO
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Public Enumeration SearchOption

Member nameDescription

Search the specified directory and all subdirectories within it. Default.


Search only the specified directory and exclude subdirectories.

This enumeration is used with the GetFiles, GetDirectories, and FindInFiles methods.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft