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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'Declaração
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
- source
Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element to use as the source of the connection
- target
Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element to use as the target of the connection
Return Value
Type: Microsoft.VisualStudio.Modeling.ElementLink
A link representing the created connection
.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.