EntityType.Name Property
The unique name of the specified entity type. String.
Public Dim Name As String
Member of [Namespace].EntityType
[C#]
public System.String Name
Member of [Namespace].EntityType
Remarks
In the following example of an entity type, the bolded text is the Name property:
AgriculturalStructure A [Structure] used for agricultural purposes
The value of the Name property is used with:
- the FindFilter.EntityTypeName property, which is passed in the FindByIDSpecification.Filter, FindByPropertySpecification.Filter, FindByIDSpecification.Filter and FindNearRouteSpecification.Filter passed to the FindByID, FindByProperty, FindNearby and FindNearRoute methods respectively.
- the FindSpecification.EntityTypeNames property, which is passed to the FindServiceSoap.Find method.
- the GetInfoOptions.EntityTypesToReturn property, which is passed to the FindServiceSoap.GetLocationInfo method.
To return entity type information for a data source, use the CommonServiceSoap.GetEntityTypes method.
For a list of the geographic entity type names for the MapPoint.EU, MapPoint.NA, and MapPoint.World data sources, see MapPoint Data Source EntityTypes and Properties.
For a list of the point-of-interest entity type names for the NavTech.EU and NavTech.NA data sources, see the following topics:
Acxiom Data Sources and Entity Types
Example
[Visual Basic]
'This example assumes that the service instance
''commonService' has already been created and that
'the MapPoint Web Service namespace has been imported
'Output all of the entity types in the MapPoint.NA data source
Dim myEntityTypes() As EntityType
Dim myDataSourceName As String = "MapPoint.NA"
myEntityTypes = commonService.GetEntityTypes(myDataSourceName)
Dim et As EntityType
For Each et In myEntityTypes
Console.WriteLine(et.Name)
Next
[C#]
//This example assumes that the service instance
//'commonService' has already been created and that
//the MapPoint Web Service namespace has been imported
//Output all of the entity types in the MapPoint.NA data source
EntityType[] myEntityTypes;
string myDataSourceName = "MapPoint.NA";
myEntityTypes = commonService.GetEntityTypes(myDataSourceName);
foreach(EntityType et in myEntityTypes)
{
Console.WriteLine(et.Name);
}
See Also
EntityType Class | FindFilter.EntityTypeName Property | FindNearbySpecification.Filter Property | FindServiceSoap.FindNearby Method | FindServiceSoap.FindByID Method | FindServiceSoap.FindByProperty Method | FindServiceSoap.FindNearRoute Method | FindSpecification.EntityTypeNames Property | FindServiceSoap.Find Method | CommonServiceSoap.GetEntityTypes Method | Acxiom Data Sources and Entity Types | NavTech.EU Entity Types and Properties | NavTech.NA Entity Types and Properties