System::IO::DirectoryInfo::GetFiles method

DirectoryInfo::GetFiles() method

返回一个数组,包含指向 FileInfo 对象的共享指针,这些对象表示当前对象表示的目录中所有目录。

ArrayPtr<FileInfoPtr> System::IO::DirectoryInfo::GetFiles()

另见

DirectoryInfo::GetFiles(const String&) method

在当前对象表示的目录中搜索满足指定搜索条件的文件。

ArrayPtr<FileInfoPtr> System::IO::DirectoryInfo::GetFiles(const String &searchPattern)
参数类型描述
searchPatternconst String&用于搜索的文件名称模式

ReturnValue

一个数组,包含指向 FileInfo 对象的共享指针,这些对象表示名称匹配 searchPattern 的已找到文件

另见

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

在当前对象表示的目录或以该目录为根的整个目录树中搜索满足指定搜索条件的文件。

ArrayPtr<FileInfoPtr> System::IO::DirectoryInfo::GetFiles(const String &searchPattern, SearchOption searchOption)
参数类型描述
searchPatternconst String&用于搜索的文件名称模式
searchOptionSearchOption指定搜索是仅在当前对象表示的目录中进行,还是在以该目录为根的整个目录树中进行

ReturnValue

一个数组,包含指向 FileInfo 对象的共享指针,这些对象表示名称匹配 searchPattern 的已找到文件

另见