MSBuildFileSystemBase.EnumerateFiles(String, String, SearchOption) Method
Definition
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.
Use this for Directory.EnumerateFiles(path, pattern, option)
public abstract System.Collections.Generic.IEnumerable<string> EnumerateFiles (string path, string searchPattern = "*", System.IO.SearchOption searchOption = System.IO.SearchOption.TopDirectoryOnly);
public virtual System.Collections.Generic.IEnumerable<string> EnumerateFiles (string path, string searchPattern = "*", System.IO.SearchOption searchOption = System.IO.SearchOption.TopDirectoryOnly);
abstract member EnumerateFiles : string * string * System.IO.SearchOption -> seq<string>
abstract member EnumerateFiles : string * string * System.IO.SearchOption -> seq<string>
override this.EnumerateFiles : string * string * System.IO.SearchOption -> seq<string>
Public MustOverride Function EnumerateFiles (path As String, Optional searchPattern As String = "*", Optional searchOption As SearchOption = System.IO.SearchOption.TopDirectoryOnly) As IEnumerable(Of String)
Public Overridable Function EnumerateFiles (path As String, Optional searchPattern As String = "*", Optional searchOption As SearchOption = System.IO.SearchOption.TopDirectoryOnly) As IEnumerable(Of String)
Parameters
- path
- String
- searchPattern
- String
- searchOption
- SearchOption