Compartilhar via


CreateReferenceRelationship.CanAcceptSourceAndTarget Method

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

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)

Syntax

'Declaração
Public Shared Function CanAcceptSourceAndTarget ( _
    candidateSource As ModelElement, _
    candidateTarget As ModelElement _
) As Boolean
public static bool CanAcceptSourceAndTarget(
    ModelElement candidateSource,
    ModelElement candidateTarget
)
public:
static bool CanAcceptSourceAndTarget(
    ModelElement^ candidateSource, 
    ModelElement^ candidateTarget
)
static member CanAcceptSourceAndTarget : 
        candidateSource:ModelElement * 
        candidateTarget:ModelElement -> bool 
public static function CanAcceptSourceAndTarget(
    candidateSource : ModelElement, 
    candidateTarget : ModelElement
) : boolean

Parameters

Return Value

Type: System.Boolean
Whether the elements can be used as the source and target of a connection

.NET Framework Security

See Also

Reference

CreateReferenceRelationship Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace