GenericCoreConnectionType.CanCreateConnection Method

This member overrides ConnectionType.CanCreateConnection(ShapeElement, ShapeElement, String%).

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

Syntax

'Declaration
Public Overrides Function CanCreateConnection ( _
    sourceShapeElement As ShapeElement, _
    targetShapeElement As ShapeElement, _
    ByRef connectionWarning As String _
) As Boolean
public override bool CanCreateConnection(
    ShapeElement sourceShapeElement,
    ShapeElement targetShapeElement,
    ref string connectionWarning
)
public:
virtual bool CanCreateConnection(
    ShapeElement^ sourceShapeElement, 
    ShapeElement^ targetShapeElement, 
    String^% connectionWarning
) override
abstract CanCreateConnection : 
        sourceShapeElement:ShapeElement * 
        targetShapeElement:ShapeElement * 
        connectionWarning:string byref -> bool  
override CanCreateConnection : 
        sourceShapeElement:ShapeElement * 
        targetShapeElement:ShapeElement * 
        connectionWarning:string byref -> bool
public override function CanCreateConnection(
    sourceShapeElement : ShapeElement, 
    targetShapeElement : ShapeElement, 
    connectionWarning : String
) : boolean

Parameters

  • connectionWarning
    Type: String%

Return Value

Type: Boolean

.NET Framework Security

See Also

Reference

GenericCoreConnectionType Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace