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 enum 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
© 2015 Microsoft