FindResults.NumberFound Property

FindResults.NumberFound Property

The total number of results found, including results that were not returned. Integer.


Public NumberFound As System.Integer


[C#]

public System.Int32 NumberFound;

Remarks

  • The NumberFound property is not influenced by the FindRange object sent to a find operation. In other words, this property is not the number of results returned; rather, it is the number of results found. Maximum value is 500 (100 for the FindServiceSoap.FindAddress method).

  • If no results are found, the returned NumberFound property value is 0.

Example

[Visual Basic]

'Output the first find result if it is a perfect match
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle, WA"

Dim foundResults As FindResults
foundResults = findService.Find(findSpec)
If (foundResults.NumberFound = 1) Then
 Console.WriteLine(foundResults.Results(0).FoundLocation.Entity.DisplayName)
Else
 Console.WriteLine("Zero or multiple results found.")
End If



[C#]

//Output the first find result if it is a perfect match
FindSpecification findSpec = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";

FindResults foundResults;
foundResults = findService.Find(findSpec);
if (foundResults.NumberFound == 1) 
{
 Console.WriteLine(foundResults.Results[0].FoundLocation.Entity.DisplayName);
}
else
{
 Console.WriteLine("Zero or multiple results found.");
}


See Also

  FindResults Class   |   FindRange Class