System::IO::DirectoryInfo::GetFileSystemInfos 方法

DirectoryInfo::GetFileSystemInfos() method

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

ArrayPtr<FileSystemInfoPtr> System::IO::DirectoryInfo::GetFileSystemInfos()

另见

DirectoryInfo::GetFileSystemInfos(const String&) method

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

ArrayPtr<FileSystemInfoPtr> System::IO::DirectoryInfo::GetFileSystemInfos(const String &searchPattern)
参数类型描述
searchPatternconst String&要搜索的文件和目录的名称模式

ReturnValue

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

另见

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

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

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

ReturnValue

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

另见