This documentation is archived and is not being maintained.

CompositeActivity.Dispose Method (Boolean)

Calls Dispose on this instance, and optionally calls Dispose on all child activities of this instance.

Namespace: System.Workflow.ComponentModel
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)

protected override void Dispose (
	bool disposing
)
protected void Dispose (
	boolean disposing
)
protected override function Dispose (
	disposing : boolean
)
Not applicable.

Parameters

disposing

true to release both managed and unmanaged resources used by this instance and all child activities of this instance; false to release only the unmanaged resources of this instance.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: