SearchOption Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
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: