CogSearchMaxRunParams MaximumNumberToFind Property Cognex VisionPro 9.5
Gets or sets the Maximum number of results to look for. In some cases, SearchMax may return fewer results than requested.

Namespace: Cognex.VisionPro.SearchMax
Assembly: Cognex.VisionPro.SearchMax (in Cognex.VisionPro.SearchMax.dll) Version: 69.0.0.0
Syntax

public int MaximumNumberToFind { get; set; }

Property Value

Type: Int32
The Maximum number of results to look for. Default value is 1.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfMaximumNumberToFind
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown when you attempt to set this to a value less than 1.
See Also