Activity.Clone Method ()


Creates a deep copy of the Activity.

Namespace:   System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public Activity Clone()

Return Value

Type: System.Workflow.ComponentModel.Activity

A deep copy of the Activity.

Uses a MemoryStream to copy the activity and creates a new activity by deserializing from that particular MemoryStream.

.NET Framework
Available since 3.0
Return to top