共用方式為


CreateInheritanceLink.Connect(ModelElement, ModelElement) Method

Definition

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

public:
 static Microsoft::VisualStudio::Modeling::ElementLink ^ Connect(Microsoft::VisualStudio::Modeling::ModelElement ^ source, Microsoft::VisualStudio::Modeling::ModelElement ^ target);
public static Microsoft.VisualStudio.Modeling.ElementLink Connect (Microsoft.VisualStudio.Modeling.ModelElement source, Microsoft.VisualStudio.Modeling.ModelElement target);
static member Connect : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.ElementLink
Public Shared Function Connect (source As ModelElement, target As ModelElement) As ElementLink

Parameters

source
ModelElement

The model element to use as the source of the connection

target
ModelElement

The model element to use as the target of the connection

Returns

A link representing the created connection

Applies to