EntityType.ParentName Property
EntityType.ParentName Property
The name of the parent EntityType object of a specified entity type. For example, the ParentName property of the AdminDivision1 entity type in the MapPoint.AP, MapPoint.BR, MapPoint.EU, MapPoint.NA, MapPoint.World, and MapPoint.WorldRoutable data sources is "AdministrativeDivision".
public ParentName As System.String
[C#]
public System.String ParentName;
Remarks
Entity types are hierarchical. The ParentName property of a top-level entity type is null.
To return entity type information for a data source, use the CommonServiceSoap.GetEntityTypes method.
Example
[Visual Basic]
'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("The parent entity type of " + et.Name _
+ " is " + et.ParentName)
Next
[C#]
//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("The parent entity type of " + et.Name
+ " is " + et.ParentName);
}
See Also
EntityType Class | CommonServiceSoap.GetEntityTypes Method