70-504VB TS Braindump
ExamSoon 70-504VB Exams
Microsoft TS: Microsoft .NET Framework 3.5 -C Windows Workflow Foundation
O rder : 70-504VB Exam
Practice Exam: 70-504VB
Exam Number/Code: 70-504VB
Exam Name: TS: Microsoft .NET Framework 3.5 -C Windows Work flow
Foundation
Questions and Answers: 102 Q&As
Free 70-504VB Braindumps
Exam : Microsoft 70-504VB
Title : TS: Microsoft .NET Framework 3.5 -C Windows Workflow Foundation
1. You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application
contains a sequential workflow.
A new business policy requires the workflow to execute all the activities except the POCreated activity.
You write the following code segment in the host application. (Line numbers are included for reference only.)
01 Dim instanceId As Guid = Guid.NewGuid()
02 Dim runtime As New WorkflowRuntime()
03 Dim workflowInstance As WorkflowInstance = _
04 runtime.GetWorkflow(instanceId)
05 Dim wRoot As Activity = _
06 workflowInstance.GetWorkflowDefinition()
07
The variable instanceId contains the ID of the workflow.
You need to ensure that the new business policy is applied.
Which code segment should you insert at line 07?
A. Dim changes As New WorkflowChanges(wRoot)
Dim POCreated As Activity = _
workflowInstance.GetWorkflowDefinition()
changes.TransientWorkflow.Activities.Remove(POCreated)
workflowInstance.Load()
B. Dim changes As New WorkflowChanges(wRoot)
Dim POCreated As Activity = _
changes.TransientWorkflow.Activities("POCreated")
changes.TransientWorkflow.Activities.Remove(POCreated)
workflowInstance.ApplyWorkflowChanges(changes)
C. workflowInstance.Unload()
Dim changes As New WorkflowChanges(wRoot)
Dim POCreated As Activity = _
changes.TransientWorkflow.Activities("POCreated")
changes.TransientWorkflow.Activities.Remove(POCreated)
workflowInstance.Load()
D. workflowInstance.Suspend("removing activity")
Dim changes As New WorkflowChanges(wRoot)
Dim POCreated As Activity = _
changes.TransientWorkflow.Activities("POCreated")
changes.Tran