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

生产力活动

上次更新日期 2026年4月14日

获取文件

从指定的 Google 云端硬盘位置检索文件列表。

语法

public IReadOnlyCollection<IFile>; GetFiles(
	IFolder parent = null,
	bool starredOnly = false,
	DriveItemFilter filter = null,
	int maxResults = 200
)
public IReadOnlyCollection<IFile>; GetFiles(
	IFolder parent = null,
	bool starredOnly = false,
	DriveItemFilter filter = null,
	int maxResults = 200
)

参数

parent IFolder (可选):Google 云端硬盘上用于搜索文件的位置。如果为 null,则使用根文件夹进行搜索。

starredOnly Boolean可选:指定是否仅返回带星标的文件。

filter DriveItemFilter可选:指定查询的其他筛选器。

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

返回值

IReadOnlyCollection<IFile> - 从指定位置检索到的文件列表

  • 语法
  • 参数
  • 返回值

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新