Operation Integer getLinkType (Integer Linkid, String system_name), in Class Connectivity

Documentation
Returns the link type as number