DataSource.Name Property
The name of the data source. String.
Public Dim Name As String
Member of [Namespace].DataSource
[C#]
public System.String Name
Member of [Namespace].DataSource
Remarks
- For example, "MapPoint.World" is the name of the data source that contains the World map.
- For a table of the available data sources and the functions that can be performed on the data source, see MapPoint Web Service Data Sources and Capabilities.
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
'Write out each available data source and corresponding description
Dim myDataSources() As DataSource
myDataSources = commonService.GetDataSourceInfo(Nothing)
Dim ds As DataSource
For Each ds In myDataSources
Console.WriteLine(ds.Name + ": " + ds.Description)
Next
[C#]
//This example assumes that the service instance
//'commonService' has already been created and that
//the MapPoint Web Service namespace has been imported
//Write out each available data source and corresponding description
DataSource[] myDataSources;
myDataSources = commonService.GetDataSourceInfo(null);
foreach(DataSource ds in myDataSources)
{
Console.WriteLine(ds.Name + ": " + ds.Description);
}
See Also
DataSource Class | MapPoint Web Service Data Sources and Capabilities