CreateEmbeddingRelationship.Connect(ModelElement, ModelElement) 方法

定义

在给定的源和目标元素对之间建立连接

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

参数

source
ModelElement

要用作连接源的模型元素

target
ModelElement

要用作连接目标的模型元素

返回

ElementLink

表示已创建连接的链接

适用于