Share via


DataSource.Capability Property

DataSource.Capability Property

The functionality (DataSourceCapability enumeration) that a data source supports, such as finding addresses, finding nearby places, routing, and so on.


Public Capability As DataSourceCapability


[C#]

public DataSourceCapability Capability;

Example

[Visual Basic]

'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#]

//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