Share via


EntityProperty.DataType Property

EntityProperty.DataType Property

The XSD data type of the property of an entity type.


Public DataType As System.String


[C#]

public System.String DataType;

Remarks

Example

[Visual Basic]

'Output the properties available for each 
'NavTech.NA entity type
Dim myEntityTypes() As EntityType
myEntityTypes = commonService.GetEntityTypes("NavTech.NA")

Dim et As EntityType
Dim ep As EntityProperty
For Each et In myEntityTypes
 Console.WriteLine("Available properties for the " _
      + et.DisplayName + " entity type are:")
 For Each ep In et.Properties
       Console.WriteLine("The type of the value of the entity property " _
  + ep.Name + " is " + ep.DataType)
 Next
Next



[C#]

//Output the properties available for each 
//NavTech.NA entity type
EntityType[] myEntityTypes;
myEntityTypes = commonService.GetEntityTypes("NavTech.NA");

foreach(EntityType et in myEntityTypes)
{
 Console.WriteLine("Available properties for the " 
  + et.DisplayName + " entity type are:");
 foreach(EntityProperty ep in et.Properties)
 {
  Console.WriteLine("The type of the value of the entity property "
   + ep.Name + " is " + ep.DataType);
 }
}


See Also

  EntityProperty Class   |   EntityPropertyValue.Value Property