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

开发者指南

上次更新日期 2025年10月30日

配置活动元数据

You can define key activity metadata such as category, name, description, or icon in the file ActivitiesMetadata.json located in the Resources folder. This metadata is used by UiPath Studio and Studio Web to discover the activities defined in the activity DLL.

有关可用属性的说明,请参阅下表。 适用于自定义库元数据的相同要求也适用于自定义活动元数据。

属性描述
resourceManagerName
用于获取资源密钥的资源管理器。 资源管理器的密钥在文件Resources.Designer.cs中定义。 您可以在public static global::System.Resources.ResourceManager ResourceManager中找到它。
例如:UiPath.Activities.Template.Resources.Resources
fullName活动的全名。
shortName活动的简短名称。
displayNameKey活动的显示名称。
descriptionKey活动说明。
categoryKey在 Studio 的“活动”面板中放置活动的类别名称。
iconKey活动的图标。 该文件必须位于“ Resources/Icon”文件夹中。
viewModelType
要用作此活动的视图模型(用户界面定义)的类。 它遵循以下模式: {namespace}.{className}
例如:UiPath.Activities.Template.ViewModels.ActivityTemplateViewModel
For example, for the Calculator activity, the file looks as follows:
{
  "resourceManagerName": "UiPath.Examples.Activities.Resources.Resources",
  "activities": [
    {
      "fullName": "UiPath.Examples.Activities.Calculator",
      "shortName": "Calculator",
      "displayNameKey": "Calculator_DisplayName",
      "descriptionKey": "Calculator_Description",
      "categoryKey": "Examples",
      "iconKey": "calculator.svg",
      "viewModelType": "UiPath.Examples.Activities.ViewModels.CalculatorViewModel"
    }
  ]
}{
  "resourceManagerName": "UiPath.Examples.Activities.Resources.Resources",
  "activities": [
    {
      "fullName": "UiPath.Examples.Activities.Calculator",
      "shortName": "Calculator",
      "displayNameKey": "Calculator_DisplayName",
      "descriptionKey": "Calculator_Description",
      "categoryKey": "Examples",
      "iconKey": "calculator.svg",
      "viewModelType": "UiPath.Examples.Activities.ViewModels.CalculatorViewModel"
    }
  ]
}
The IDs for displayNameKey and descriptionKey are defined in the file Resources.Designer.cs and the values are defined in the file Resources.resx.
The following image shows the activity metadata configuration as displayed in UiPath Studio:


1 - 类别 ( categoryKey )
2 - 显示名称 ( displayNameKey )
3 - 说明 ( descriptionKey )
4 - 图标 ( iconKey )

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。