Export (0) Print
Expand All

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
public enum SearchOption
public enum SearchOption

 Member nameDescription
SearchAllSubDirectoriesSearch the specified directory and all subdirectories within it. Default. 
SearchTopLevelOnlySearch only the specified directory and exclude subdirectories. 

For more detailed information, see the Visual Basic topic SearchOption Enumeration.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft