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 workflow contains a custom activity named CustomActivity. The custom activity meets the following requirements:

It overrides the Execute method.
It retrieves customer information.

You need to stop the workflow if the customer information cannot be retrieved.

Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
throw new CustomerNotFoundException();

B.
executionContext.CancelActivity(this);

C.
return ActivityExecutionStatus.Faulting;

D.
RaiseEvent(FaultingEvent, this, EventArgs.Empty);


Leave a Reply