Activity.Clone Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a deep copy of the Activity.

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

Public Function Clone As Activity

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
Show: