SearchOption SearchOption SearchOption SearchOption Enum

定义

指定是搜索所有目录还是仅搜索顶级目录。Specifies whether to search all or only top-level directories.

public enum class SearchOption
public enum SearchOption
type SearchOption = 
Public Enum SearchOption
继承

字段

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.

注解

此枚举与GetFilesGetDirectoriesFindInFiles方法一起使用。This enumeration is used with the GetFiles, GetDirectories, and FindInFiles methods.

适用于

另请参阅