Share via


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

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