CommonServiceSoap.GetEntityTypes Method

CommonServiceSoap.GetEntityTypes Method

Returns an array of EntityType[] objects for a specified data source.



Public Function GetEntityTypes
 (dataSourceName As System.String) As EntityType()


[C#]

public EntityType[]
 GetEntityTypes (System.String dataSourceName);

Parameters

dataSourceName
A string representing the DataSource.Name property of the data source for which information is returned. The string passed in this parameter must match the DataSource.Name property exactly.

Remarks

  • If the specified data source does not include entity types (such as MapPoint.Icons), nothing is returned.

Example


[Visual Basic]

'Get the entity types for the MapPoint.NA data source
Dim commonService As New CommonServiceSoap()
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 MapPoint Web Service 
//namespace has been imported

//Get the entity types for the MapPoint.NA data source
CommonServiceSoap commonService = new CommonServiceSoap();
EntityType[] myEntityTypes;
string myDataSourceName = "MapPoint.NA";
myEntityTypes = commonService.GetEntityTypes(myDataSourceName);
foreach(EntityType et in myEntityTypes)
{
 Console.WriteLine(et.Name);
}



See Also

  CommonServiceSoap Class   |   EntityType Class   |   DataSource.Name Property  

Show: