Share via


CreateEmbeddingRelationship.CanAcceptSourceAndTarget Method

Definition

Test whether a given pair of model elements are acceptable to this ConnectionBuilder as the source and target of a connection

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

Parameters

candidateSource
ModelElement

The model element to test as a source

candidateTarget
ModelElement

The model element to test as a target

Returns

Whether the elements can be used as the source and target of a connection

Applies to