Which code fragment should you use to replace the code at lines 06 and 07?

You are defining a Windows Workflow Foundation workflow by using Microsoft .NET Framework 3.5.

You create a custom activity class named FilterActivity in the workflow. The class defines two dependency properties named Input and Output.

You write the following code fragment. (Line numbers are included for reference only.) 01 <SequentialWorkflowActivity
02 x:Name="Workflow1"
03 xmlns:ns0="Contoso.FilterActivities"
04 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 05 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow"> 06 <ns0:FilterActivity x:Name="filterActivity1" />
07 <ns0:FilterActivity x:Name="filterActivity2" />
08 </SequentialWorkflowActivity>

You need to ensure that the Input property of filterActivity2 accepts the value of the Output property of filterActivity1 at run time.

Which code fragment should you use to replace the code at lines 06 and 07?

You are defining a Windows Workflow Foundation workflow by using Microsoft .NET Framework 3.5.

You create a custom activity class named FilterActivity in the workflow. The class defines two dependency properties named Input and Output.

You write the following code fragment. (Line numbers are included for reference only.) 01 <SequentialWorkflowActivity
02 x:Name="Workflow1"
03 xmlns:ns0="Contoso.FilterActivities"
04 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 05 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow"> 06 <ns0:FilterActivity x:Name="filterActivity1" />
07 <ns0:FilterActivity x:Name="filterActivity2" />
08 </SequentialWorkflowActivity>

You need to ensure that the Input property of filterActivity2 accepts the value of the Output property of filterActivity1 at run time.

Which code fragment should you use to replace the code at lines 06 and 07?

A.
<ns0:FilterActivity x:Name="filterActivity1"/><ns0:FilterActivity x:Name="filterActivity2" Input="{ActivityBind filterActivity1,Path=Output}"/>

B.
<ns0:FilterActivity x:Name="filterActivity1" Output="{ActivityBind filterActivity2,Path=Input}"/><ns0:FilterActivity x:Name="filterActivity2"/>

C.
<ns0:FilterActivity x:Name="filterActivity1" Output="{ActivityBind filterActivity2,Path=Input}"/><ns0:FilterActivity x:Name="filterActivity2" Input="{ActivityBind filterActivity1,Path=Output}"/>

D.
<ns0:FilterActivity x:Name="filterActivity1" Output="{ActivityBind filterActivity1,Path=Input}"/><ns0:FilterActivity x:Name="filterActivity2" Input="{ActivityBind filterActivity2,Path=Output}"/>



Leave a Reply 0

Your email address will not be published. Required fields are marked *