ConnectableElementExtensions::CreateConnector Method (IStructuredClassifier^, IConnectableElement^, IConnectableElement^, IProperty^, IProperty^)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
public: [ExtensionAttribute] static IConnector^ CreateConnector( IStructuredClassifier^ parent, IConnectableElement^ sourceConnectableElement, IConnectableElement^ targetConnectableElement, IProperty^ sourcePart = null, IProperty^ targetPart = null )
Parameters
- sourceConnectableElement
-
Type:
Microsoft.VisualStudio.Uml.CompositeStructures::IConnectableElement^
Part or port to be connected.
- targetConnectableElement
-
Type:
Microsoft.VisualStudio.Uml.CompositeStructures::IConnectableElement^
Part or port to be connected.
- sourcePart
-
Type:
Microsoft.VisualStudio.Uml.Classes::IProperty^
Parent part of the source port, or null.
- targetPart
-
Type:
Microsoft.VisualStudio.Uml.Classes::IProperty^
Parent part of the target port, or null.
Return Value
Type: Microsoft.VisualStudio.Uml.CompositeStructures::IConnector^
Show: