PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application contains a workflow named AdmitWorkflow in the namespace Hospital.Patient. The application uses strong-named assemblies. You plan to create an administrative application to monitor the workflow database. The administrative application must return a list of idle AdmitWorkflow workflows. You need to correctly configure the SqlTrackingQueryOptions class. Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
SqlTrackingQueryOptions options = new SqlTrackingQueryOptions();options.WorkflowStatus = WorkflowStatus.Running;options.WorkflowType = Type.GetType("Hospital.Patient.AdmitWorkflow");

B.
SqlTrackingQueryOptions options = new SqlTrackingQueryOptions();options.WorkflowStatus = WorkflowStatus.Suspended;options.WorkflowType = Type.GetType("Hospital.Patient.AdmitWorkflow");

C.
SqlTrackingQueryOptions options = new SqlTrackingQueryOptions();options.WorkflowStatus = WorkflowStatus.Running;options.WorkflowType = Type.GetType("Hospital.Patient.AdmitWorkflow, Hospital.Patient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789ABCDEF");

D.
SqlTrackingQueryOptions options = new SqlTrackingQueryOptions();options.WorkflowStatus = WorkflowStatus.Suspended;options.WorkflowType = Type.GetType("Hospital.Patient.AdmitWorkflow, Hospital.Patient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789ABCDEF");


Leave a Reply