订阅

UiPath Studio

UiPath Studio 指南

参数面板

在“参数”面板用于创建参数并进行更改。在此面板中重命名参数会自动更新当前文件中出现的所有对应参数。

下表描述了可用于参数的属性。

PropertyDescription
NameMandatory.
The name of your argument. If you do not add a name to an argument, one is automatically generated. For more information on how to name your arguments, see Naming Best Practices.
DirectionMandatory.
Select a direction for your argument. The following options are available:
In – the argument can only be used within the given project.
Out – the argument can be used to pass data outside of a given project.
In/Out – the arguments can be used both within and outside of a given project.
Property – not currently used.
Argument TypeMandatory.
Choose the value type you want your argument to store. The following options are available:
Boolean
Int32
String
Object
System.Data.DataTable
Array of [T]
Browse for Types

If you select a .Net type from the Browse and Select a .Net Type window, it is added to the Argument Type drop-down list.
Default ValueOptional.
The default value of the argument. If this field is empty, the variable does not have a default value.
Please note that default values for arguments must be provided in English, regardless of the Studio interface language.
IsRequiredIf selected, marks the argument as mandatory.
Note: This property is available in the Properties panel.

参数的上下文菜单

在“参数”面板中,右击一个参数以打开其上下文菜单。

OptionDescription
Convert to VariableConverts the argument into a variable of the same type as the former argument and with the top level scope. Multiple selection is available. If a variable with the same name exists, an error message is logged in the Output panel and the variable is not created.
CopyCopies one or more arguments, their names, types, and default values to another workflow. If an argument with the same name exists, an error message is displayed in the Output panel.
PastePastes one or more arguments, their names, types, and default values to another workflow. The argument’s scope must be reassigned. If the argument’s type isn’t found in the workflow, the option is disabled.
DeleteRemoves the argument from the panel, but not from the workflow.
Add AnnotationOpens the Add Annotation window for adding comments to an argument.
Edit AnnotationOpens the Add Annotation window for editing comments.
Delete AnnotationDeletes annotations previously set for an argument.
Add WatchAdds the current argument to the Watch panel. This is available only during debugging.
Find ReferencesFind all references to the argument in the project. The results are displayed in the Find References panel.

大约一年前更新


参数面板


建议的编辑仅限用于 API 参考页面

您只能建议对 Markdown 正文内容进行编辑,而不能建议对 API 规范进行编辑。