CommonServiceSoap.GetEntityTypes Method
Returns an array of EntityType[] objects for a specified data source.
Public NotOverridable Function GetEntityTypes
( ByVal dataSourceName As String )
As [Namespace].EntityType()
Member of [Namespace].CommonServiceSoap
[C#]
public [Namespace].EntityType[]
GetEntityTypes ( System.String dataSourceName )
Member of [Namespace].CommonServiceSoap
Parameters
- dataSourceName
A string representing the DataSource.Name property of the data source for which information is returned. Required.
Remarks
- The string passed in the dataSourceName parameter must match the DataSource.Name property exactly.
- If the specified data source does not include entity types (such as MapPoint.Icons), nothing is returned.
Example
[Visual Basic]
'This example assumes that the MapPoint Web Service namespace
'has been imported
'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