vb System.Workflow.ComponentModel.Design.ActivityToolboxItem.CreateComponentsCore类(方法)实例源码

下面列出了vb System.Workflow.ComponentModel.Design.ActivityToolboxItem.CreateComponentsCore 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Workflow.ComponentModel.Desig   
<Serializable()> _
Friend Class CustomActivityToolboxItem
    Inherits ActivityToolboxItem

    Public Sub New(ByVal type As Type)
        MyBase.new(type)
    End Sub

    Private Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
        Deserialize(info, context)
    End Sub

    Protected Overrides Function CreateComponentsCore(ByVal designerHost As IDesignerHost) As IComponent()
        Dim parallel As New ParallelActivity()
        parallel.Activities.Add(New CustomActivity())
        parallel.Activities.Add(New CustomActivity())

        Return New IComponent() {parallel}
    End Function
End Class


问题


面经


文章

微信
公众号

扫码关注公众号