HuBeZa
HuBeZa

Reputation: 4761

What is the equivalent for try-finally block in workflow foundation?

There is a specific activity I want to execute even after exception has thrown, just like a try{}finally{} block.

Is it possible in sequential workflow using WF v3.5?

Upvotes: 0

Views: 426

Answers (1)

Maurice
Maurice

Reputation: 27632

In WF3 there is no such thing, that is something they added in WF4 though.

In Wf3 you would need to add a fault handler, execute your activity and use the ThrowActivity to throw the exception again.

Upvotes: 1

Related Questions