DirectoryInfo: GetFileSystemInfos

GetFileSystemInfos

Returns a list of all entries in the directory that match the pattern.



 Public Function GetFileSystemInfos(
	  Optional ByVal SearchPattern As String = "*",
	  Optional ByVal SearchOption As SearchOption = TopDirectoryOnly ) As FileSystemInfo ( )

Parameters

SearchPattern
[ByVal] Optional. String. The pattern to match against all entries.  

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

FileSystemInfo() -  A list of all entries that matched the pattern.

Remarks

If no entries matched the pattern, a zero-length array is returned.

See Also

Project CorLib Overview

Class DirectoryInfo Overview