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
sourceConnectableElement
Type: Microsoft.VisualStudio.Uml.CompositeStructures.IConnectableElementPart or port to be connected.
targetConnectableElement
Type: Microsoft.VisualStudio.Uml.CompositeStructures.IConnectableElementPart or port to be connected.
sourcePart
Type: Microsoft.VisualStudio.Uml.Classes.IPropertyParent part of the source port, or null.
targetPart
Type: Microsoft.VisualStudio.Uml.Classes.IPropertyParent part of the target port, or null.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ConnectableElementExtensions Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace