70-504  Exam

Exam # of questions Description  Update
70-504 180 MS.NET Framework 3.5 Workflow Foundation Applicati... 02/15/2011
[Practice Test]    [Download Study Guide(PDF)]   [Update Exam]

70-504 - Exam Information
  • Description: MS.NET Framework 3.5 Workflow Foundation Application Developer
  • Passing Score: 0%
  • Practice Test - Number of questions: 180 questions
  • Simulation Test - Number of questions: 180 questions
  • Simulation Test Duration: 120 minutes
  • Has explanations: No

Question of the day

You are creating a Windows Workflow Foundation code-based workflow named Workflow1 by using Microsoft .NET Framework 3.5. You write the following code segment in the Workflow1 class. public TimeSpan DelayTime { get { return _delayTime; } set { _delayTime = value; } } // default delay of one hour TimeSpan _delayTime = new TimeSpan(0, 1, 0); You are adding an activity named delayActivity1 of type DelayActivity to the workflow. The activity must meet the following requirements: The TimeoutDuration property value returns the DelayTime property value of the Workflow1 object.

Answer(s)

  1. change in the DelayTime property value during the execution of the workflow is immediatelyreflected in the TimeoutDuration property value.You need to ensure that the Workflow1 class constructor enables the activity to meet the outlinedrequirements.Which code segment should you use?A. delayActivity1.TimeoutDuration = this.DelayTime;
  2. delayActivity1.SetValue( DelayActivity.TimeoutDurationProperty, this.DelayTime);
  3. ActivityBind bind = new ActivityBind();bind.Name = "Workflow1";bind.Path ="DelayTime";delayActivity1.SetBinding(DelayActivity.TimeoutDurationProperty, bind);
  4. ActivityBind bind = new ActivityBind();bind.Name = delayActivity1.Name;bind.Path ="TimeoutDuration";bind.UserData.Add("TimeoutDuration",this.DelayTime);delayActivity1.SetBinding(DelayActivity.TimeoutDurationProperty, bind);
Correct Answer

ActivityBind bind = new ActivityBind();bind.Name = "Workflow1";bind.Path ="DelayTime";delayActivity1.SetBinding(DelayActivity.TimeoutDurationProperty, bind);