CreateReferenceRelationship.Connect(ModelElement, ModelElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在给定的源和目标元素对之间建立连接
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
要用作连接目标的模型元素
返回
表示已创建连接的链接