Share via


DataSource.Capability Property

The functionality (DataSourceCapability enumeration) that the data source can perform.

Public Dim Capability As [Namespace].DataSourceCapability
    Member of [Namespace].DataSource
[C#]
public [Namespace].DataSourceCapability Capability
    Member of [Namespace].DataSource

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 capability
Dim myDataSources() As DataSource
myDataSources = commonService.GetDataSourceInfo(Nothing)
Dim ds As DataSource
For Each ds In myDataSources
    Console.WriteLine(ds.Name + ": " + ds.Capability.ToString())
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 capability
DataSource[] myDataSources;
myDataSources = commonService.GetDataSourceInfo(null);
foreach(DataSource ds in myDataSources)
{
    Console.WriteLine(ds.Name + ": " + ds.Capability.ToString());
}

 

See Also

DataSource Class | DataSourceCapability Enumeration