GoDiagram Win Reference
GetOtherPort(IGoLink,IGoPort) Method

an IGoLink
an IGoPort that the link l is connected to
Return the IGoPort of an IGoLink other than the given one.
Syntax
'Declaration
 
Public Overloads Shared Function GetOtherPort( _
   ByVal l As IGoLink, _
   ByVal p As IGoPort _
) As IGoPort
public static IGoPort GetOtherPort( 
   IGoLink l,
   IGoPort p
)

Parameters

l
an IGoLink
p
an IGoPort that the link l is connected to

Return Value

An IGoPort, that may be null if the other end of the link is not connected, or that may return the same p if both ends of the link are connected to the same port.
Remarks
If neither this link's FromPort nor its ToPort is the given port p, this will return either the FromPort or the ToPort, whichever is farther away. Otherwise this will return null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoLink Class
GoLink Members
Overload List

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback