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

Marketplace 用户指南

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

超时

“超时” 开关可向活动添加“超时” 属性。 如果活动未在此属性指定的时间内完成执行,则会引发错误。 默认超时自动设置为 60000 毫秒(1 分钟)。

Activity Creator

docs image

生成的代码

Simple activities with timeouts extend the TimeoutAsyncCodeActivity class, which already contains a Timeout.

using ...
namespace MyCompany.MyProduct.Activities
{
    [LocalizedDisplayName(nameof(Resources.Addition_DisplayName))]
    [LocalizedDescription(nameof(Resources.Addition_Description))]
    public class AdditionWithTimeout : TimeoutAsyncCodeActivity
    {
      ...
    }
}
using ...
namespace MyCompany.MyProduct.Activities
{
    [LocalizedDisplayName(nameof(Resources.Addition_DisplayName))]
    [LocalizedDescription(nameof(Resources.Addition_Description))]
    public class AdditionWithTimeout : TimeoutAsyncCodeActivity
    {
      ...
    }
}

UiPath Studio 中的效果

docs image

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新