ToolPin GetToolOwner Method Cognex VisionPro 9.21

Gets the Tool which contains this pin.

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

public ITool GetToolOwner()

Return Value

Type: ITool

The owning Tool, or nullptr if this pin is not currently part of a Tool contained within a ToolBlock

Remarks

A pin is owned by a Tool if it is a member of that Tool's Inputs or Outputs collection.

A pin may only be owned by a single Tool at one time. Note: the owning Tool may actually be a ToolBlock.

See Also