This member overrides ConnectionType.CanCreateConnection(ShapeElement, ShapeElement, String%).
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Overrides Function CanCreateConnection ( _
sourceShapeElement As ShapeElement, _
targetShapeElement As ShapeElement, _
ByRef connectionWarning As String _
) As Boolean
'使用
Dim instance As GenericCoreConnectionType
Dim sourceShapeElement As ShapeElement
Dim targetShapeElement As ShapeElement
Dim connectionWarning As String
Dim returnValue As Boolean
returnValue = instance.CanCreateConnection(sourceShapeElement, _
targetShapeElement, connectionWarning)
public override bool CanCreateConnection(
ShapeElement sourceShapeElement,
ShapeElement targetShapeElement,
ref string connectionWarning
)
public:
virtual bool CanCreateConnection(
ShapeElement^ sourceShapeElement,
ShapeElement^ targetShapeElement,
String^% connectionWarning
) override
public override function CanCreateConnection(
sourceShapeElement : ShapeElement,
targetShapeElement : ShapeElement,
connectionWarning : String
) : boolean
Parameters
- sourceShapeElement
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
- targetShapeElement
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
- connectionWarning
Type: System.String%
Return Value
Type: System.Boolean
Permissions
- 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.
See Also
Reference
GenericCoreConnectionType Class