CreateEmbeddingRelationship.CanAcceptSourceAndTarget Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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