开发者

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

开发者 https://www.devze.com 2023-01-02 17:05 出处:网络
There is a specific activity I want to execute even after exception has thrown, just like a try{}开发者_Python百科finally{} block.

There is a specific activity I want to execute even after exception has thrown, just like a try{}开发者_Python百科finally{} block.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消