System::IO::DirectoryInfo::EnumerateFiles method

DirectoryInfo::EnumerateFiles() method

Returns enumerable collection containing all files located in the directory represented by the current object.

SharedPtr<IEnumerable<FileInfoPtr>> System::IO::DirectoryInfo::EnumerateFiles()

See Also

DirectoryInfo::EnumerateFiles(const String&) method

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

SharedPtr<IEnumerable<FileInfoPtr>> System::IO::DirectoryInfo::EnumerateFiles(const String &searchPattern)
ParameterTypeDescription
searchPatternconst String&The name pattern of the files to search for

ReturnValue

The enumerable collection of shared pointers to FileInfo objects representing the found files whose names match searchPattern

See Also

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

Searches for the files 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.

SharedPtr<IEnumerable<FileInfoPtr>> System::IO::DirectoryInfo::EnumerateFiles(const String &searchPattern, SearchOption searchOption)
ParameterTypeDescription
searchPatternconst String&The name pattern of the files 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

The enumerable collection of shared pointers to FileInfo objects representing the found files whose names match searchPattern

See Also