Entity.DisplayName Property

The long descriptive name of an entity. String.

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

Remarks

  • For example, the DisplayName property for "Seattle, WA" is "Seattle, Washington, United States."
  • The DisplayName 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 DisplayName property for results returned from the FindAddress, FindByID, FindByProperty, FindNearby, or 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 

'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#]
//This example assumes that the service instance 
//'findService' has already been created and that 
//the MapPoint Web Service namespace has been imported 
    
//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.Find Method | FindServiceSoap.GetLocationInfo Method | UserInfoHeader.Culture Property | UserInfoFindHeader Class | FindServiceSoap.FindAddress Method | FindSeUsrviceSoap.FindNearby Method | FindServiceSoap.FindByID Method | FindServiceSoap.FindByProperty Method | FindServiceSoap.FindNearRoute Method