ConnectionType.IsValidSourceAndTarget Method
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
Public Overridable Function IsValidSourceAndTarget ( _
sourceShapeElement As ShapeElement, _
targetShapeElement As ShapeElement _
) As Boolean
public virtual bool IsValidSourceAndTarget(
ShapeElement sourceShapeElement,
ShapeElement targetShapeElement
)
public:
virtual bool IsValidSourceAndTarget(
ShapeElement^ sourceShapeElement,
ShapeElement^ targetShapeElement
)
abstract IsValidSourceAndTarget :
sourceShapeElement:ShapeElement *
targetShapeElement:ShapeElement -> bool
override IsValidSourceAndTarget :
sourceShapeElement:ShapeElement *
targetShapeElement:ShapeElement -> bool
public function IsValidSourceAndTarget(
sourceShapeElement : ShapeElement,
targetShapeElement : ShapeElement
) : boolean
Parameters
- sourceShapeElement
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
- targetShapeElement
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
Return Value
Type: System.Boolean
.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.