GenericCoreConnectionType.IsValidSourceAndTarget Method

This member overrides ConnectionType.IsValidSourceAndTarget(ShapeElement, ShapeElement).

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

Syntax

'宣言
Public Overrides Function IsValidSourceAndTarget ( _
    sourceShapeElement As ShapeElement, _
    targetShapeElement As ShapeElement _
) As Boolean
'使用
Dim instance As GenericCoreConnectionType
Dim sourceShapeElement As ShapeElement
Dim targetShapeElement As ShapeElement
Dim returnValue As Boolean

returnValue = instance.IsValidSourceAndTarget(sourceShapeElement, _
    targetShapeElement)
public override bool IsValidSourceAndTarget(
    ShapeElement sourceShapeElement,
    ShapeElement targetShapeElement
)
public:
virtual bool IsValidSourceAndTarget(
    ShapeElement^ sourceShapeElement, 
    ShapeElement^ targetShapeElement
) override
public override function IsValidSourceAndTarget(
    sourceShapeElement : ShapeElement, 
    targetShapeElement : ShapeElement
) : boolean

Parameters

Return Value

Type: System.Boolean

Permissions

See Also

Reference

GenericCoreConnectionType Class

GenericCoreConnectionType Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace