Entity.Name Property

The short name for a particular entity. String.

Public Dim Name As String
    Member of [Namespace].Entity
[C#]
public System.String Name
    Member of [Namespace].Entity

Remarks

  • The Name property for results returned from the Find and GetLocationInfo methods of the FindServiceSoap class are localized depending on the language indicated by the Culture property of the UserInfoFindHeader object.
  • The Name property for results returned from theFindAddress, FindByID, FindByProperty, FindNearby and FindNearRoute methods of the FindServiceSoap class are not localized. Found addresses are returned in the local language for the area in which the address is located. Found points of interest from the MapPoint Web Service point-of-interest data sources are in U.S. English.

Example

 
[Visual Basic]
'This example assumes that the service instance 
''findService' has already been created and that 
'the MapPoint Web Service namespace has been imported 

'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#]
//This example assumes that the service instance 
//'findService' has already been created and that 
//the MapPoint Web Service namespace has been imported 

//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