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.
精彩评论