Diagram.SupportsPorts Property
Gets the diagram and verifies whether it contains ports.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Déclaration
Public Overridable ReadOnly Property SupportsPorts As Boolean
Get
public virtual bool SupportsPorts { get; }
public:
virtual property bool SupportsPorts {
bool get ();
}
abstract SupportsPorts : bool
override SupportsPorts : bool
function get SupportsPorts () : boolean
Property Value
Type: System.Boolean
true if the diagram contains ports; otherwise, false.
Remarks
By default, the return value is false.
Hit testing does not check for ports if the diagram does not contain ports.
.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.