ConnectableElementExtensions.CreateConnector Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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.Uml.Extensions
Assembly: Microsoft.VisualStudio.Uml.Extensions (in Microsoft.VisualStudio.Uml.Extensions.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
'Usage
Dim parent As IStructuredClassifier
Dim sourceConnectableElement As IConnectableElement
Dim targetConnectableElement As IConnectableElement
Dim sourcePart As IProperty
Dim targetPart As IProperty
Dim returnValue As IConnector
returnValue = parent.CreateConnector(sourceConnectableElement, _
targetConnectableElement, sourcePart, _
targetPart)
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.IConnectableElement
source of the Connector
- targetConnectableElement
Type: Microsoft.VisualStudio.Uml.CompositeStructures.IConnectableElement
target of the Connector
- sourcePart
Type: Microsoft.VisualStudio.Uml.Classes.IProperty
The part that owns the source port, or null if the source is not a port on a part.
- targetPart
Type: Microsoft.VisualStudio.Uml.Classes.IProperty
The part that owns the target port, or null if the target is not a port on a part.
Return Value
Type: Microsoft.VisualStudio.Uml.CompositeStructures.IConnector
A new IConnector object
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