SearchOption SearchOption SearchOption SearchOption Enum

Definition

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

public enum class SearchOption
public enum SearchOption
type SearchOption = 
Public Enum SearchOption
Inheritance

Fields

SearchAllSubDirectories SearchAllSubDirectories SearchAllSubDirectories SearchAllSubDirectories 3

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

SearchTopLevelOnly SearchTopLevelOnly SearchTopLevelOnly SearchTopLevelOnly 2

Search only the specified directory and exclude subdirectories.

Remarks

This enumeration is used with the GetFiles, GetDirectories, and FindInFiles methods.

Applies to

See also