While.Body 속성

정의

While 루프에서 실행할 Activity입니다.

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

속성 값

실행할 작업입니다.

특성

예제

다음 코드 샘플에서는 활동의 Body 속성을 설정하는 방법을 While 보여 줍니다.

new While
{
    Condition = true,
    Body = new Receive
    {
        ServiceContractName = Constants.POContractName,
        OperationName = Constants.UpdatePOName,
        CorrelatesWith = poidHandle, // identifies that the UpdatePO operation is waiting on the PurchaseOrderId that was used to initialize this handle
        CorrelatesOn = new MessageQuerySet // the query that is used on an incoming message to find the requisite PurchaseOrderId specified in the correlation
        {
            // Id is the name of the incoming parameter within the PurchaseOrder
            { "PoId", new XPathMessageQuery("sm:body()/defns:PurchaseOrder/defns:Id", Constants.XPathMessageContext) }
        },
        Content = ReceiveContent.Create(new OutArgument<PurchaseOrder>(po)) // creates a ReceiveMessageContent
    }
},

적용 대상