CommonServiceSoap.GetDataSourceInfo Method
Returns information about one or more data sources as an array of DataSource[] objects.
Public NotOverridable Function GetDataSourceInfo ( ByVal
dataSourceNames As String() )
As [Namespace].DataSource()
Member of [Namespace].CommonServiceSoap
[C#]
public [Namespace].DataSource[]
GetDataSourceInfo ( string[]
dataSourceNames )
Member of [Namespace].CommonServiceSoap
Parameters
- dataSourceNames
An array of strings representing the DataSource.Name property of the data sources for which information is returned. Valid range is 0 through 500. Optional.
Remarks
- The strings passed in the dataSourceNames parameter must match the DataSource.Name property exactly.
- If the dataSourceNames input parameter is null, the GetDataSourceInfo method returns a DataSource object for each DataSource object accessible by the caller.
- The DataSource array is returned in the same order as the array passed in the dataSourceNames parameter.
Example
[Visual Basic]
'This example assumes that the MapPoint Web Service namespace
'has been imported
'Get information about all available data sources
Dim commonService As New CommonServiceSoap()
Dim myDataSources() As DataSource
myDataSources = commonService.GetDataSourceInfo(Nothing)
Dim ds As DataSource
For Each ds In myDataSources
Console.WriteLine(ds.Name)
Next
[C#]
//This example assumes that the MapPoint Web Service namespace
//has been imported
//Get information about all available data sources
CommonServiceSoap commonService = new CommonServiceSoap();
DataSource[] myDataSources;
myDataSources = commonService.GetDataSourceInfo(null);
foreach (DataSource ds in myDataSources)
{
Console.WriteLine(ds.Name);
}
See Also
CommonServiceSoap Class | DataSource.Name Property