CreateReferenceRelationship.CanAcceptSourceAndTarget 方法

定义

测试给定的一对模型元素是否可接受此 ConnectionBuilder 作为连接的源和目标

public:
 static bool CanAcceptSourceAndTarget(Microsoft::VisualStudio::Modeling::ModelElement ^ candidateSource, Microsoft::VisualStudio::Modeling::ModelElement ^ candidateTarget);
public static bool CanAcceptSourceAndTarget (Microsoft.VisualStudio.Modeling.ModelElement candidateSource, Microsoft.VisualStudio.Modeling.ModelElement candidateTarget);
static member CanAcceptSourceAndTarget : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> bool
Public Shared Function CanAcceptSourceAndTarget (candidateSource As ModelElement, candidateTarget As ModelElement) As Boolean

参数

candidateSource
ModelElement

要作为源进行测试的模型元素

candidateTarget
ModelElement

要作为目标测试的模型元素

返回

Boolean

元素是否可用作连接的源和目标

适用于