Share via


Entity.TypeName Property

Entity.TypeName Property

A string representing the categorization of an entity (EntityType.Name property).


Public TypeName As System.String


[C#]

public System.String TypeName;

Remarks

Example

[Visual Basic]

'Output the Entity type 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 Type List")
Dim fr As FindResult
For Each fr In foundResults.Results
 Console.WriteLine("The Entity type of " + fr.FoundLocation.Entity.Name _
  + " is " + fr.FoundLocation.Entity.TypeName)
Next



[C#]

//Output the Entity type 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 Type List");
foreach(FindResult fr in foundResults.Results)
{
 Console.WriteLine("The Entity type of " + fr.FoundLocation.Entity.Name 
  + " is " + fr.FoundLocation.Entity.TypeName);
}


See Also

  Entity Class   |   EntityType.Name Property