You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application has a workflow named OrderWorkflow. The application also has a rule set named MyRules that is placed in the OrderWorkflow.rules file. You need to dynamically create a policy activity to reference the MyRules rule set. Which code segment should you use?
A.
PolicyActivity act = new PolicyActivity();act.Save(new FileStream("MyRules", FileMode.Open));
B.
PolicyActivity act = new PolicyActivity();act.RuleSetReference = new RuleSetReference("MyRules");
C.
PolicyActivity act = new PolicyActivity();act.SetValue(DependencyProperty.FromName( "RuleSet", typeof(PolicyActivity)), new RuleSetReference("MyRules"));
D.
PolicyActivity act = new PolicyActivity();act.RuleSetReference.SetValue( DependencyProperty.FromName("RuleSet", typeof(RuleSetReference)), new RuleSet("MyRules"));