Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Clone Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft