Freigeben über


ConnectionType.CanCreateConnection Method

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

Syntax

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

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ConnectionType Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace