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

开发者指南

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

类型

docs image

Select Browse for Types to open the Type Presenter and access more complex types.

docs image

备注:

Any references added to the Activities project (i.e. MyCompany.MyProduct.Activities) will be available in this Type Presenter. The Auxiliary project (i.e. MyCompany.MyProduct) is included by default in this list of references, so any custom classes added there are automatically usable in your activities.

docs image

生成的代码

属性类型在 Argument 中声明,以便在 UiPath Studio 中实现更多功能。 如果选择了任何非标准类型,则带有该类型命名空间的 using 语句将自动添加到活动文件的顶部。

using System;
...
  
#regio Properties
[LocalizedDisplayName(nameof(Resources.Addition_FirstNumber_DisplayName))]
[LocalizedDescription(nameof(Resources.Addition_FirstNumber_Description))]
[LocalizedCategory(nameof(Resources.Input_Category))]
public InArgument<int> FirstNumber { get; set; }
[LocalizedDisplayName(nameof(Resources.Addition_SecondNumber_DisplayName))]
[LocalizedDescription(nameof(Resources.Addition_SecondNumber_Description))]
[LocalizedCategory(nameof(Resources.Input_Category))]
public InArgument<int> SecondNumber { get; set; }
[LocalizedDisplayName(nameof(Resources.Addition_Sum_DisplayName))]
[LocalizedDescription(nameof(Resources.Addition_Sum_Description))]
[LocalizedCategory(nameof(Resources.Output_Category))]
public OutArgument<int> Sum { get; set; }
#endregio
...
using System;
...
  
#regio Properties
[LocalizedDisplayName(nameof(Resources.Addition_FirstNumber_DisplayName))]
[LocalizedDescription(nameof(Resources.Addition_FirstNumber_Description))]
[LocalizedCategory(nameof(Resources.Input_Category))]
public InArgument<int> FirstNumber { get; set; }
[LocalizedDisplayName(nameof(Resources.Addition_SecondNumber_DisplayName))]
[LocalizedDescription(nameof(Resources.Addition_SecondNumber_Description))]
[LocalizedCategory(nameof(Resources.Input_Category))]
public InArgument<int> SecondNumber { get; set; }
[LocalizedDisplayName(nameof(Resources.Addition_Sum_DisplayName))]
[LocalizedDescription(nameof(Resources.Addition_Sum_Description))]
[LocalizedCategory(nameof(Resources.Output_Category))]
public OutArgument<int> Sum { get; set; }
#endregio
...

UiPath Studio 中的效果

属性说明在设计器中显示为文本框占位符。 也可以通过将鼠标悬停在“属性”窗格中的属性上来查看这些属性。

docs image

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新