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)
ParameterType描述
searchPatternconst String&要搜索的文件和目录的名称模式

ReturnValue

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

另见

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

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

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

ReturnValue

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

另见