c# - 如何访问 UiPath 中使用的 .NET 代码?

标签 c# .net vb.net rpa uipath

在使用编写自动化时,有没有办法查看一些代码? 我在 UiPath Studio 中有以下内容:

enter image description here

有没有办法查看 中类似的代码或类似的代码:

Sub Main

    Dim year as Integer
    year = InputBox()
    If year mod 4 = 0 Then           'the rule for leap year is a bit different.
        MsgBox "It is leap"
    Else
        MsgBox "It is not leap"
    End If

End Sub

我浏览了互联网,但到目前为止我只找到了用于创建盒子的 XAML 代码。我的逻辑(或希望)是,如果 UiPath Studio 使用 VB 表达式,那么应该可以看到生成的代码:

enter image description here

最佳答案

UiPath Studio 自动将图表“翻译”为 :

因此,上图的 XAML 代码如下所示:

<Flowchart.Variables>
  <Variable x:TypeArguments="x:Int32" Default="2013" Name="year" />
</Flowchart.Variables>
<Flowchart.StartNode>
  <x:Reference>__ReferenceID3</x:Reference>
</Flowchart.StartNode>
<FlowDecision x:Name="__ReferenceID2" Condition="[year mod 4 = 0]" sap2010:WorkflowViewState.IdRef="FlowDecision_1">
  <FlowDecision.True>
    <FlowStep x:Name="__ReferenceID0" sap2010:WorkflowViewState.IdRef="FlowStep_2">
      <ui:MessageBox ChosenButton="{x:Null}" Buttons="Ok" Caption="It Is" DisplayName="Message box" sap2010:WorkflowViewState.IdRef="MessageBox_2" Text="It Is" TopMost="True" />
    </FlowStep>
  </FlowDecision.True>
  <FlowDecision.False>
    <FlowStep x:Name="__ReferenceID1" sap2010:WorkflowViewState.IdRef="FlowStep_4">
      <ui:MessageBox ChosenButton="{x:Null}" Buttons="Ok" Caption="It Is Not" DisplayName="Message box" sap2010:WorkflowViewState.IdRef="MessageBox_4" Text="It Is Not" TopMost="True" />
    </FlowStep>
  </FlowDecision.False>
</FlowDecision>

关于c# - 如何访问 UiPath 中使用的 .NET 代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52150079/

相关文章:

c# - 带参数的 Dispatcher.BeginInvoke 操作

c# - 在没有 .NET 框架的情况下运行 .NET 应用程序

C# 下拉项目 0 - 100 而不添加每个项目?

c# - 关闭 WinForm 应用程序时一次性对象的生命周期

.net - 在VB.NET中获取文件修改日期

vb.net - 什么是 bool 标志

c# - 通过鼠标单击获取图表上的 x 坐标

c# - IProgress<T> 多久报告一次进度

c# 可以将登录凭据(非显式)与 wsmanconnectioninfo 一起使用吗?

c# - 在 range.InsertBreak 中使用哪些 WdBreakType 常量普遍安全?