Entity.DisplayName Property
Entity.DisplayName Property
The descriptive name of an entity. For example, the value of the DisplayName property for "Seattle, WA" is "Seattle, Washington, United States".
Public DisplayName As System.String
[C#]
public System.String DisplayName;
Remarks
If you provide the Culture property of the UserInfoFindHeader object when calling the FindServiceSoap.Find or FindServiceSoap.GetLocationInfo method, the DisplayName property is localized.
However, the DisplayName property is unaffected by the Culture property of the UserInfoFindHeader object when you call the FindServiceSoap.FindAddress, FindServiceSoap.FindByID, FindServiceSoap.FindByProperty, FindServiceSoap.FindNearby, and FindServiceSoap.FindNearRoute methods. Instead, results are returned in the local language for the area in which the address is located.
Points of interest from the MapPoint Web Service point-of-interest data sources are always returned in U.S. English.
Example
[Visual Basic]
'Use the DisplayName property to output Find results
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)
Console.WriteLine("Total Found: " + foundResults.NumberFound.ToString())
Dim fr As FindResult
For Each fr In foundResults.Results
Console.WriteLine(fr.FoundLocation.Entity.DisplayName)
Next
[C#]
//Use the DisplayName property to output Find results
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);
Console.WriteLine("Total Found: " + foundResults.NumberFound.ToString());
foreach(FindResult fr in foundResults.Results)
{
Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
}
See Also
Entity Class | FindServiceSoap Class | UserInfoHeader.Culture Property | UserInfoFindHeader Class