共用方式為


FlowStep.Action 屬性

定義

Activity 執行的 FlowStep

public:
 property System::Activities::Activity ^ Action { System::Activities::Activity ^ get(); void set(System::Activities::Activity ^ value); };
public System.Activities.Activity Action { get; set; }
member this.Action : System.Activities.Activity with get, set
Public Property Action As Activity

屬性值

要做為此流程圖步驟一部分而執行的活動。

範例

下列程式碼範例將示範如何使用 FlowStep 節點的 Action 屬性。 此範例來自 使用 TryCatch 範例的流程圖活動中的錯誤處理

FlowStep singleStep = new FlowStep
{
    Action = new Assign
    {
        DisplayName = "discount = 10.0",
        To = new OutArgument<double> (discount),
        Value = new InArgument<double> (10.0)
    },
    Next = flowDecision
};

適用於