Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
SearchOption Enum
Definition
- Namespace:
- Microsoft.VisualBasic.FileIO
- Assembly:
- Microsoft.VisualBasic.Core.dll
- Assembly:
- Microsoft.VisualBasic.dll
- Source:
- FileSystem.vb
- Source:
- FileSystem.vb
- Source:
- Information.vb
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether to search all or only top-level directories.
public enum class SearchOption
public enum SearchOption
type SearchOption =
Public Enum SearchOption
- Inheritance
Fields
| Name | Value | Description |
|---|---|---|
| SearchTopLevelOnly | 2 | Search only the specified directory and exclude subdirectories. |
| SearchAllSubDirectories | 3 | Search the specified directory and all subdirectories within it. Default. |
Remarks
This enumeration is used with the GetFiles, GetDirectories, and FindInFiles methods.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
