开发者

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{}开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜