| 70-504 Exam |
| 70-504 - Exam Information |
| 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)
ActivityBind bind = new ActivityBind();bind.Name = "Workflow1";bind.Path ="DelayTime";delayActivity1.SetBinding(DelayActivity.TimeoutDurationProperty, bind);