SearchResults.NumWarnings
- Updated2025-07-21
- 1 minute(s) read
SearchResults.NumWarnings
Syntax
SearchResults.NumWarnings
Data Type
Purpose
Returns the number of warnings. If the search is not yet complete, this number can increase in the future as TestStand adds new warning messages. TestStand adds warning messages when it encounters an error while performing a search. A common error that can occur is when TestStand cannot load a file because of type conflicts.
Remarks
You can access the warnings even as they accumulate asynchronously by using the SearchResults.GetWarning method to obtain the number of warnings and then using this method to access only the SearchMatch objects up to that number. TestStand always appends new warnings to the end of the result list.