Share via


CreateReferenceRelationship.Connect Method

Make a connection between the given pair of source and target elements

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)

Syntax

'Declaration
Public Shared Function Connect ( _
    source As ModelElement, _
    target As ModelElement _
) As ElementLink
public static ElementLink Connect(
    ModelElement source,
    ModelElement target
)
public:
static ElementLink^ Connect(
    ModelElement^ source, 
    ModelElement^ target
)
static member Connect : 
        source:ModelElement * 
        target:ModelElement -> ElementLink
public static function Connect(
    source : ModelElement, 
    target : ModelElement
) : ElementLink

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ElementLink
A link representing the created connection

.NET Framework Security

See Also

Reference

CreateReferenceRelationship Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace