activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

生产力活动

上次更新日期 2026年3月11日

获取文件

从指定的 OneDrive 或 SharePoint 位置检索一系列文件。

命名空间: UiPath.MicrosoftOffice365.Activities.Api

程序集: UiPath.MicrosoftOffice365.Activities.Api(在 UiPath.MicrosoftOffice365.Activities.Api.dll 中)

重载

重载描述
GetFiles(IFolder, Boolean, String, Int32)从指定的 OneDrive 或 SharePoint 位置检索一系列文件。
GetFiles(DriveItemFilter, IFolder, Boolean, Boolean, Int32)从指定的 OneDrive 或 SharePoint 位置检索筛选后的文件列表。

GetFiles(IFolder、Boolean、String、Int32)

从指定的 OneDrive 或 SharePoint 位置检索一系列文件。

IReadOnlyCollection<IFile> GetFiles(
	IFolder parent = null,
	bool trimDuplicates = false,
	string simpleSearchQuery = null,
	int maxResults = 200
)
IReadOnlyCollection<IFile> GetFiles(
	IFolder parent = null,
	bool trimDuplicates = false,
	string simpleSearchQuery = null,
	int maxResults = 200
)

parent文件夹(可选):要从中搜索文件的位置。如果为 null,则使用根文件夹进行搜索。

trimDuplicates Boolean (可选):指定是否要从搜索结果中删除重复文件。

simpleSearchQuery必填)(可选): 在多个字段 中用于搜索文件的查询文本。

maxResults Int32 (可选):要返回的最大文件数。

GetFiles(DriveItemFilter, IFolder, Boolean, Boolean, Int32)

IReadOnlyCollection<IFile> GetFiles(
	DriveItemFilter filter,
	IFolder parent = null,
	bool trimDuplicates = false,
	bool includeSubfolders = false,
	int maxResults = 200
)
IReadOnlyCollection<IFile> GetFiles(
	DriveItemFilter filter,
	IFolder parent = null,
	bool trimDuplicates = false,
	bool includeSubfolders = false,
	int maxResults = 200
)

filter驱动器项目筛选器:定义高级搜索条件,以用作筛选文件的依据。Microsoft 个人帐户不支持此高级搜索。

parent文件夹(可选):要从中搜索文件的位置。如果为 null,则使用根文件夹进行搜索。

trimDuplicates Boolean (可选):指定是否要从搜索结果中删除重复文件。

includeSubfolders布尔值(可选):指定是否展开搜索以包括所选位置的所有子文件夹。

maxResults Int32 (可选):要返回的最大文件数。

返回值

“IReadOnlyCollection <IFile>” - 检索到的文件列表。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新