You are here: Symbol Reference > dtSearch.Engine Namespace > Classes > SearchJob Class > SearchJob Properties > AutoStopLimit Property
Close
dtSearch .NET Standard API 2024.02
SearchJob.AutoStopLimit Property

Set to a non-zero value to make the search automatically stop when this many documents were found.

public int AutoStopLimit;

AutoStopLimit causes a search to halt automatically when a specified number of documents have been found. This provides a way to limit the resources consumed by searches that retrieve a very large number of documents. When the number of files retrieved reaches the autoStopLimit value, the search will immediately halt, and the code dtsErSearchLimitReached will be returned through the error handler for the search job. If the AutoStopLimit is 0, the search will not halt.

Copyright (c) 1998-2023 dtSearch Corp. All rights reserved.