ILinkManager CanLink Method Cognex VisionPro 9.21

Returns true if pinA and pinB are compatible meaning pinA and pinB can be linked.

Namespace: Cognex.Vision.Implementation
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.0.0
Syntax

bool CanLink(
	ToolPin pinA = null,
	ToolPin pinB = null,
	bool throwIfFalse = false
)

Return Value

Type: Boolean

true if the two pins can be successfully linked

Exceptions

ExceptionCondition
InvalidOperationExceptionif:
  • pinA or pinB is null
  • pinA or pinB are have incompatible PinTypes
  • pinA and pinB are both source pins
  • pinA and pinB are both destination pins
  • pinA and pinB are not part of the same LinkManager scope
See Also