FindSpecification.Options Property

FindSpecification.Options Property

The search options (FindOptions object), which may include the range of results, the threshold score of results returned, the search context, and a flag to identify which objects are desired in the returned results.


Public Options As FindOptions


[C#]

public FindOptions Options;

Remarks

Example

[Visual Basic]

'Return all find results, and then output them
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle, WA"
findSpec.Options = New FindOptions()
findSpec.Options.ThresholdScore = 0

Dim foundResults As FindResults
foundResults = findService.Find(findSpec)

Dim fr As FindResult
For Each fr In foundResults.Results
 Console.WriteLine(fr.FoundLocation.Entity.DisplayName)
Next



[C#]

//Return all find results, and then output them
FindSpecification findSpec  = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";
findSpec.Options = new FindOptions();
findSpec.Options.ThresholdScore = 0;

FindResults foundResults;
foundResults = findService.Find(findSpec);

foreach(FindResult fr in foundResults.Results)
{
 Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
}


See Also

  FindSpecification Class   |   FindOptions Class   |   FindServiceSoap.Find Method