Partager via


CreateDiagramElementMap.CanAcceptSourceAndTarget Method

Can this connection builder accept the given elements as its connection source and targets.

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

Syntax

'Declaration
Public Shared Function CanAcceptSourceAndTarget ( _
    sourceElement As ModelElement, _
    targetElement As ModelElement _
) As Boolean
public static bool CanAcceptSourceAndTarget(
    ModelElement sourceElement,
    ModelElement targetElement
)
public:
static bool CanAcceptSourceAndTarget(
    ModelElement^ sourceElement, 
    ModelElement^ targetElement
)
static member CanAcceptSourceAndTarget : 
        sourceElement:ModelElement * 
        targetElement:ModelElement -> bool
public static function CanAcceptSourceAndTarget(
    sourceElement : ModelElement, 
    targetElement : ModelElement
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

CreateDiagramElementMap Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace