ActivityToolboxItem Constructor (SerializationInfo^, StreamingContext)
.NET Framework (current version)
Initializes a new instance of the ActivityToolboxItem class by using the specified SerializationInfo and StreamingContext.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Parameters
- info
-
Type:
System.Runtime.Serialization::SerializationInfo^
The SerializationInfo that holds information to deserialize the toolbox item.
- context
-
Type:
System.Runtime.Serialization::StreamingContext
The StreamingContext that provides the deserialization context for the toolbox item.
When ActivityToolboxItem is called, it deserializes the toolbox item.
The following example shows a complete ActivityToolboxItem class for a custom activity. The Deserialize method is called within the constructor in order to initialize a new instance of the ActivityToolboxItem.
.NET Framework
Available since 3.0
Available since 3.0
Show: