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
- candidateSource
Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element to test as a source
- candidateTarget
Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element to test as a target
Return Value
Type: System.Boolean
Whether the elements can be used as the source and target of a connection
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.