CompositeActivity.Dispose Method (Boolean)
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Throughout an activity's lifetime, several .NET objects may be created or disposed. Every time a workflow instance is unloaded from memory, the .NET objects corresponding to the activities in the workflow tree are disposed (the Dispose method is called on each activity). When the workflow instance is loaded back into memory, a new .NET object is created for each activity with the state from the corresponding unload.