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

生产力活动

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

GetMessagesAsync

异步检索 Imap 邮件消息。

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

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

重载

重载描述
GetMessagesAsync(GetImapMailMailOptions, CancellationToken)使用GetImapMailMailOptions对象配置的属性异步检索 Imap 邮件消息。
GetMessagesAsync(GetMailOptions, CancellationToken)使用附加选项异步检索 Imap 邮件消息。
GetMessagesAsync(CancellationToken)异步检索 Imap 邮件消息。

GetMessagesAsync(GetImapMailMailOptions, CancellationToken)

使用GetImapMailMailOptions对象配置的属性异步检索 Imap 邮件消息。

Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetImapMailOptions options,
	CancellationToken token
)
Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetImapMailOptions options,
	CancellationToken token
)

options “获取图像邮件选项” :用于检索电子邮件消息的选项。

token取消令牌:用于取消操作的取消令牌。

GetMessagesAsync(GetMailOptions, CancellationToken)

使用其他选项异步检索电子邮件消息。

Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetMailOptions options,
	CancellationToken token
)
Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetMailOptions options,
	CancellationToken token
)

options “获取邮件选项” :用于自定义邮件检索的其他选项:

* `Top` - The number of messages to retrieve starting from the top of the list.
* `Top` - The number of messages to retrieve starting from the top of the list.

token CancellationToken :用于取消操作的令牌。

GetMessagesAsync(CancellationToken)

异步检索电子邮件消息。

Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	CancellationToken token
)
Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	CancellationToken token
)

token CancellationToken :用于取消操作的令牌。

返回值

Task<IReadOnlyCollection<MailMessage>>

作为邮件消息对象集合的已检索邮件消息。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新