ActivityToolboxItem::CreateComponentsCore Method (IDesignerHost^)

 

Creates an Activity component or an array of Activity components when the toolbox item is invoked.

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

protected:
virtual array<IComponent^>^ CreateComponentsCore(
	IDesignerHost^ host
) override

Parameters

host
Type: System.ComponentModel.Design::IDesignerHost^

The IDesignerHost to host the toolbox item.

Return Value

Type: array<System.ComponentModel::IComponent^>^

An array of created IComponent objects.

The CreateComponentsCore method returns the component or components that the ActivityToolboxItem creates.

The following example shows a complete ActivityToolboxItem class for a custom activity. In this example, the CreateComponentsCore method is overridden in order to insert 2 custom activities within a ParallelActivity.

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

.NET Framework
Available since 3.0
Return to top
Show: