DirectoryInfo: GetDirectories

GetDirectories

Returns a list of directories within this directory.



 Public Function GetDirectories(
	  Optional ByVal SearchPattern As String = "*",
	  Optional ByVal SearchOption As SearchOption = TopDirectoryOnly ) As DirectoryInfo ( )

Parameters

SearchPattern
[ByVal] Optional. String. A pattern for all directories to 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

DirectoryInfo() -  A list of all matching directories.

Remarks

If no matching directories were found, then an empty array is returned.

See Also

Project CorLib Overview

Class DirectoryInfo Overview