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
SearchAllSubDirectories

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

SearchTopLevelOnly

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
Show:
© 2016 Microsoft