Share via


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

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