FlowDecision.True 속성

정의

조건이 .로 FlowNode 계산될 때 실행되는 값을 가져오거나 설정합니다.true

public:
 property System::Activities::Statements::FlowNode ^ True { System::Activities::Statements::FlowNode ^ get(); void set(System::Activities::Statements::FlowNode ^ value); };
[System.Windows.Markup.DependsOn("Condition")]
public System.Activities.Statements.FlowNode True { get; set; }
[<System.Windows.Markup.DependsOn("Condition")>]
member this.True : System.Activities.Statements.FlowNode with get, set
Public Property True As FlowNode

속성 값

조건이 로 계산되는 경우 실행할 작업입니다.true

특성

예제

다음 코드 샘플에서는 노드의 True 속성을 설정하는 방법을 FlowDecision 보여 줍니다. 이 예제는 TryCatch 샘플을 사용하여 순서도 작업의 오류 처리에서 가져옵니다.

FlowDecision flowDecision = new FlowDecision
{
    Condition = ExpressionServices.Convert<bool>((ctx) => discount.Get(ctx) > 0),
    True = discountApplied,
    False = discountNotApplied
};

적용 대상