Entity.Name Property
Entity.Name Property
The short name for a particular entity.
Public Name As System.String
[C#]
public System.String Name;
Remarks
If you provide the Culture property of the UserInfoFindHeader object when calling the FindServiceSoap.Find or FindServiceSoap.GetLocationInfo method, the Name property is localized.
However, the Name 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]
'Output the Entity Name and Entity ID of each found location
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("Entity List")
Dim fr As FindResult
For Each fr In foundResults.Results
Console.WriteLine(fr.FoundLocation.Entity.Name + ": " _
+ fr.FoundLocation.Entity.ID.ToString())
Next
[C#]
//Output the Entity Name and Entity ID of each found location
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("Entity List");
foreach(FindResult fr in foundResults.Results)
{
Console.WriteLine(fr.FoundLocation.Entity.Name + ": "
+ fr.FoundLocation.Entity.ID.ToString());
}
See Also
Entity Class | CultureInfo.Lcid Property | CultureInfo.Name Property | FindServiceSoap Class