SearchOption Enum

Specifies whether to search the current directory, or the current directory and all subdirectories.

Syntax

Declaration

[Serializable]
[ComVisible(true)]
public enum SearchOption

Fields

AllDirectories

Includes the current directory and all its subdirectories in a search operation. This option includes reparse points such as mounted drives and symbolic links in the search.

TopDirectoryOnly

Includes only the current directory in a search operation.

Details

Namespace

System.IO

Assembly

System.IO.FileSystem.dll