You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application uses a sequential workflow. The workflow is implemented in a class named ProcessOrders. The workflow contains a dependency property named EmployeeID. You need to ensure that the EmployeeID property is assigned a value when the host application tries to create a new workflow instance. Which code segment should you use?
A.
WorkflowRuntime runtime = new WorkflowRuntime();ProcessOrders processOrders = new ProcessOrders();processOrders.EmployeeID = "NBK";WorkflowInstance instance = runtime.CreateWorkflow(typeof(ProcessOrders));
B.
WorkflowRuntime runtime = new WorkflowRuntime();ProcessOrders processOrders = new ProcessOrders ();processOrders.SetValue(ProcessOrders.EmployeeIDProperty , "NBK");WorkflowInstance instance = runtime.CreateWorkflow(typeof(ProcessOrders));
C.
WorkflowRuntime runtime = new WorkflowRuntime();Dictionary<string, object> dict = new
Dictionary<string,object>();dict.Add("EmployeeID", "NBK");WorkflowInstance instance = runtime.CreateWorkflow(typeof(ProcessOrders), dict);
D.
WorkflowRuntime runtime = new WorkflowRuntime();Dictionary<string, object> dict = new Dictionary<string,object>();dict.Add("EmployeeIDProperty", "NBK");WorkflowInstance instance = runtime.CreateWorkflow(typeof(ProcessOrders), dict);