GetFiles
Returns a list of file matching the pattern in this directory.
Public Function GetFiles(
Optional ByVal SearchPattern As String = "*",
Optional ByVal SearchOption As SearchOption = TopDirectoryOnly ) As FileInfo ( )
Parameters
- SearchPattern
-
[ByVal]
Optional.
String.
The pattern the files must match.
Default: "*"
- SearchOption
-
[ByVal]
Optional.
SearchOption.
One of the enumeration values that specifies whether the search operation should include all subdirectories or only the current directory.
Default: TopDirectoryOnly
Return Values
FileInfo() - A list of files that matched the pattern.
Remarks
If no files matched the pattern, a zero-length array is returned.
See Also
Project CorLib Overview
Class DirectoryInfo Overview