共用方式為


ActivityExtensions.CreateControlFlow 方法

在 ActivityNode 中建立新的 IControlFlow 連結

命名空間:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
組件:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (在 Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll 中)

語法

'宣告
<ExtensionAttribute> _
Public Shared Function CreateControlFlow ( _
    parent As IActivity, _
    sourceActivityNode As IActivityNode, _
    targetActivityNode As IActivityNode _
) As IControlFlow
public static IControlFlow CreateControlFlow(
    this IActivity parent,
    IActivityNode sourceActivityNode,
    IActivityNode targetActivityNode
)
[ExtensionAttribute]
public:
static IControlFlow^ CreateControlFlow(
    IActivity^ parent, 
    IActivityNode^ sourceActivityNode, 
    IActivityNode^ targetActivityNode
)
static member CreateControlFlow : 
        parent:IActivity * 
        sourceActivityNode:IActivityNode * 
        targetActivityNode:IActivityNode -> IControlFlow 
public static function CreateControlFlow(
    parent : IActivity, 
    sourceActivityNode : IActivityNode, 
    targetActivityNode : IActivityNode
) : IControlFlow

參數

傳回值

型別:Microsoft.VisualStudio.Uml.Activities.IControlFlow

使用注意事項

在 Visual Basic 和 C# 中,您可以在任何 IActivity 型別物件中呼叫這個方法以做為執行個體。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱擴充方法 (Visual Basic)擴充方法 (C# 程式設計手冊)

.NET Framework 安全性

請參閱

參考

ActivityExtensions 類別

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml 命名空間