ActivityToolboxItem Constructor (SerializationInfo^, StreamingContext)

 

Initializes a new instance of the ActivityToolboxItem class by using the specified SerializationInfo and StreamingContext.

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

protected:
ActivityToolboxItem(
	SerializationInfo^ info,
	StreamingContext context
)

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: