SearchOption Enumeration 

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

Remarks

This enumeration is used with the My.Computer.FileSystem.GetFiles Method, My.Computer.FileSystem.GetDirectories Method, and My.Computer.FileSystem.FindInFiles Method.

Members

Member Description

SearchAllSubDirectories

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

SearchTopLevelOnly

Search only the specified directory and exclude subdirectories.

Requirements

Namespace: Microsoft.VisualBasic.FileIO

Class: SearchOption

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Reference

My.Computer.FileSystem.FindInFiles Method
My.Computer.FileSystem.GetDirectories Method
My.Computer.FileSystem.GetFiles Method
Microsoft.VisualBasic.FileIO.SearchOption