ConnectableElementExtensions::CreateConnector Method (IStructuredClassifier^, IConnectableElement^, IConnectableElement^, IProperty^, IProperty^)

 

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)

public:
[ExtensionAttribute]
static IConnector^ CreateConnector(
	IStructuredClassifier^ parent,
	IConnectableElement^ sourceConnectableElement,
	IConnectableElement^ targetConnectableElement,
	IProperty^ sourcePart = null,
	IProperty^ targetPart = null
)

Parameters

parent
Type: Microsoft.VisualStudio.Uml.CompositeStructures::IStructuredClassifier^

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 to top
Show: