System::IO::DirectoryInfo::GetDirectories method

DirectoryInfo::GetDirectories() method

Returns an array containing shared pointers to DirectoryInfo objects representing all directories located in the directory represented by the current object.

ArrayPtr<DirectoryInfoPtr> System::IO::DirectoryInfo::GetDirectories()

See Also

DirectoryInfo::GetDirectories(const String&) method

Searches for the directories that satisfy the specified search criteria in the directory represented by the current object.

ArrayPtr<DirectoryInfoPtr> System::IO::DirectoryInfo::GetDirectories(const String &searchPattern)
ParameterTypeDescription
searchPatternconst String&The name pattern of the directories to search for

ReturnValue

An array of shared pointers to DirectoryInfo objects representing the found directories whose names match searchPattern

See Also

DirectoryInfo::GetDirectories(const String&, SearchOption) method

Searches for the directories that satisfy the specified search criteria either in the directory represented by the current object or in the whole directory tree rooted in the directory represented by the current object.

ArrayPtr<DirectoryInfoPtr> System::IO::DirectoryInfo::GetDirectories(const String &searchPattern, SearchOption searchOption)
ParameterTypeDescription
searchPatternconst String&The name pattern of the directories to search for
searchOptionSearchOptionSpecifies whether the search has to be performed in the directory represented by the current object only or in the whole directory tree rooted in the directory represented by the current object

ReturnValue

An array of shared pointers to DirectoryInfo objects representing the found directories whose names match searchPattern

See Also