70-504 TS Braindump
ExamSoon 70-504 Exams
Microsoft TS: Microsoft .NET Framework 3.5 – Windows Workflow Foundation
O rder : 70-504 Exam
Practice Exam: 70-504
Exam Number/Code: 70-504
Exam Name: TS: Microsoft .NET Framework 3.5 – Windows Work flow Foundation
Questions and Answers: 187 Q&As
Free 70-504 Braindumps
Exam : Microsoft 70-504
Title : TS: Microsoft .NET Framework 3.5 -C Windows Workflow Foundation
1. Question
You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application
uses a sequential workflow.
The host application creates a workflow instance and stores it in a variable named instance. When the workflow is
executed, a business requirement requires the workflow execution to pause for a few minutes.
The host uses the following code segment.
WorkflowRuntime runtime = new WorkflowRuntime();
WorkflowInstance instance =
?runtime.CreateWorkflow( typeof(Workflow1));
instance.Start();
You need to ensure that the following requirements are met:
The workflow execution is temporarily pauseD. The workflow state is preserved in memory.
Which line of code should you use?
A. instance.Unload();
B. instance.TryUnload();
C. instance.Suspend(null);
D. instance.Terminate(null);
Answer: C
2. Question
You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application
contains a state workflow.
You write the following code segment.
Dim amount As Integer = 10
Dim runtime As New WorkflowRuntime()
Dim instance As WorkflowInstance = _
?runtime.CreateWorkflow(GetType(DynamicUpdateWorkflow))
instance.Start()
Dim smwi As New StateMachineWorkflowInstance(runtime, _
?instance.InstanceId)
A dependency property named Status is defined in this workflow.
The value of a variable named amount is used to set the state of the workflow.
You need to ensure that the host application changes the state of the workflow on the basis of the value of the amount
variable.
What are the two possible code segments that you can use to achieve th