Share via


Entity.Name Property

Entity.Name Property

The short name for a particular entity.


Public Name As System.String


[C#]

public System.String Name;

Remarks

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