FindSpecification.DataSourceName Property
FindSpecification.DataSourceName Property
A string representing the name of the data source (DataSource.Name property) in which to search for a place. String.
Public DataSourceName As System.String
[C#]
public System.String DataSourceName;
Remarks
The DataSourceName property is used with the specification parameter of the FindServiceSoap.Find method.
The DataSourceName property is required, and must represent a valid data source for use with the FindServiceSoap.Find method.
The FindServiceSoap.Find method is valid with only data sources that have a CanFindPlaces capability (DataSourceCapability enumeration).
For more information about MapPoint Web Service data sources, see MapPoint Web Service Data Sources and Capabilities.
To retrieve a list of data sources and their capabilities, use the CommonServiceSoap.GetDataSourceInfo method.
Example
[Visual Basic]
'Output the returned find results
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle, WA"
Dim foundResults As FindResults
foundResults = findService.Find(findSpec)
Dim fr As FindResult
For Each fr In foundResults.Results
Console.WriteLine(fr.FoundLocation.Entity.DisplayName)
Next
[C#]
//Output the returned find results
FindSpecification findSpec = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";
FindResults foundResults;
foundResults = findService.Find(findSpec);
foreach(FindResult fr in foundResults.Results)
{
Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
}
See Also
FindSpecification Class | DataSource.Name Property | FindServiceSoap.Find Method | MapPoint Web Service Data Sources and Capabilities