PrepAway - Latest Free Exam Questions & Answers

Category: 70-504

Exam 70-504: TS: Microsoft .NET Framework 3.5 – Workflow

Which code segment should you use?

You are creating a Microsoft Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. You implement a custom tracking profile in the application to
monitor and debug the workflow. You create a CodeActivity activity named AddToCart in the application. You need to define an ActivityTrackingCondition class that matches the AddToCart activity.
Which code segment should you use?

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?

Which base class should you use?

You are creating a Windows Workflow Foundation (WF) custom activity by using Microsoft .NET Framework 3.5. The custom activity is derived from the System.Workflow.Activities.SequenceActivity class. You need to create a validator for the custom activity. You also need to ensure that the validator reuses the validation logic provided by WF to recursively validate child activities. Which base class should you use?

Which code segment should you use?

You create a Windows Workflow Foundation custom activity class named AccountTransfer by using Microsoft .NET Framework 3.5.

You plan to add a property named Amount of type double to the custom activity.

During the creation of a workflow, the property must be available to other activities for the following purposes:

Reading
Writing
Activity data binding
You need to ensure that the property meets the outlined requirements.

Which code segment should you use?

Which code segment should you use?

You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5.

The custom activity has the following features:
It is derived from the System.Workflow.ComponentModel.CompositeActivity class.
It contains a single child activity.

You create a method named ExecuteChild for the custom activity. Each time the custom activity is required to execute the child activity, the custom activity invokes the ExecuteChild method.

You need to ensure that the ExecuteChild method enables the custom activity to execute the child activity more than once.

Which code segment should you use?

Which code segment should you use?

You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5.
The custom activity is derived from the System.Workflow.ComponentModel.CompositeActivity class.

The custom activity will manage one or more child activities.

You need to ensure that the custom activity performs the following tasks:

Runs each child activity exactly once.
Runs all the child activities in parallel.

Which code segment should you use?

Which code segment should you use?

You are creating a Windows Workflow Foundation custom activity class
named FileTransfer by using Microsoft .NET Framework 3.5. You plan to add a dependency property named FileName of type string to the custom activity. You need to ensure that each time the FileName property is assigned an empty string value at design time, the workflow does not compile. Which code segment should you use?

Which code segment should you use?

You are creating a custom activity named SocketActivity by using Microsoft .NET Framework 3.5. You use Windows Workflow Foundation to create the custom activity.

The custom activity is derived from the System.Workflow.ComponentModel.Activity class. The activity includes the following field definition.

[NonSerialized]
private Socket _socket = null;

The custom activity might enter the idle state during execution. When it enters the idle state, the activity is serialized and unloaded by a persistence service.

You need to ensure that the _socket field is initialized each time the custom activity executes.

Which code segment should you use?


Page 4 of 9« First...23456...Last »