Delen via


ConnectableElementExtensions.CreateConnector Method

Connect the source element to a target element, such as a Part or Port. If the source or target is a Port located on a Part, specify both.

Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateConnector ( _
    parent As IStructuredClassifier, _
    sourceConnectableElement As IConnectableElement, _
    targetConnectableElement As IConnectableElement, _
    sourcePart As IProperty, _
    targetPart As IProperty _
) As IConnector
public static IConnector CreateConnector(
    this IStructuredClassifier parent,
    IConnectableElement sourceConnectableElement,
    IConnectableElement targetConnectableElement,
    IProperty sourcePart,
    IProperty targetPart
)
[ExtensionAttribute]
public:
static IConnector^ CreateConnector(
    IStructuredClassifier^ parent, 
    IConnectableElement^ sourceConnectableElement, 
    IConnectableElement^ targetConnectableElement, 
    IProperty^ sourcePart, 
    IProperty^ targetPart
)
static member CreateConnector : 
        parent:IStructuredClassifier * 
        sourceConnectableElement:IConnectableElement * 
        targetConnectableElement:IConnectableElement * 
        sourcePart:IProperty * 
        targetPart:IProperty -> IConnector
public static function CreateConnector(
    parent : IStructuredClassifier, 
    sourceConnectableElement : IConnectableElement, 
    targetConnectableElement : IConnectableElement, 
    sourcePart : IProperty, 
    targetPart : IProperty
) : IConnector

Parameters

Return Value

Type: Microsoft.VisualStudio.Uml.CompositeStructures.IConnector

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IStructuredClassifier. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ConnectableElementExtensions Class

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace